---
title: "confirm -vm in eclipse.ini"
author: "huhu_long"
date: "2012-05-25T13:07:40Z"
tags: []
categories: ["编程语言"]
slug: "confirm-vm-in-eclipse-ini"
draft: false
lastmod: "2012-05-25T13:09:40Z"
id: 1540474
url: "https://vrplat.iteye.com/blog/1540474"
---

When starting eclipse, I get below warning:


> 
> Maven Integration for Eclipse JDK Warning
> 
> The Maven Integration requires that Eclipse be running in a JDK, because a number of Maven core plugins are using jars from the JDK.
> 
> Please make sure the -vm option in eclipse.ini is pointing to a JDK and verify that Installed JREs are also using JDK installs.
> 


So, what need to do is adding -vm option in eclipse.ini file.


> 
> -vm
> C:/Java/jdk1.7.0_03/bin/javaw.exe
> 


---------------- Before update ------------------


```script

-startup
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.100.v20110502
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m

```


---------------- After update ------------------


```script

-startup
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.100.v20110502
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-vm
C:/Java/jdk1.7.0_03/bin/javaw.exe
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m

```


Pay attention to the location of -vm option, it should before -vmargs option.