A warning message appears every time you install Maven:
Eclipse is running in a JRE, but a JDK is required.
Some Maven plugins may isn't work when importing projects or updating source folders.
Solve the problem in two steps:
1. Check the JRE that eclipse is using
' Java ', ' Preferences ', ' Window ', ' installed JREs ' determines that the JDK is being used rather than the JRE.
650) this.width=650; "alt=" image "Src=" http://ugc.qpic.cn/adapt/0/6d7d5410-eda7-e1cd-9615-c59793ed8619/0 "style=" border-width:0px; "title=" image "border=" 0 "height=" 540 "width=" 675 "/>
If there is no JDK, a new standard VM is added first.
2. Configure Eclipse.ini
Review the Eclipse configuration file and Add/edit the following code:
-vm
C:\progra~2\java\jdk1.6.0_16\jre\bin\javaw
Precautions:
1. First row parameter name, second behavior value, cannot be written to the same line
2. For the value of the second row, because no spaces are allowed, use progra~1 or 2 instead of program Files (x86).
If under Program files, use Progra~1, if under x86, use Progra~2
3. The position in the file can not be put to the last (after-vmargs), do not rest assured directly placed in the file, such as:
-vm
C:\progra~2\java\jdk1.6.0_16\jre\bin\javaw
-startup
.....
--launcher.defaultaction
OpenFile
-vmargs
-dosgi.requiredjavaversion=1.5
-xms240m
-xmx912m
3. Restart Eclipse, warning no longer appears.
Exceptions that may be thrown
1. If an exception is thrown when starting Eclipse.exe Java was started but returned exit code = -As follows:
650) this.width=650; "alt=" Picture "src=" HTTP://B234.PHOTO.STORE.QQ.COM/PSB?/V10WIRYS0AP55K/2. qb8luxqbc6svmakvjfpzgabpk7hvr.oebtuu4sv7i%21/b/dofihysufgaa&bo=7whragaaaaadaci%21&su=028767777&rf= 2-9 "style=" width:495px;height:747px; "/>
This is caused by an inconsistency between the version of Eclipse and the JDK version, to make sure that eclipse and JDK are either 64-bit or 32-bit.
2. If an exception is thrown when starting Eclipse.exe Java was started but returned exit code =-805306369
This error can be a lot of reasons, I am just a possible solution, as follows: The main reason is that the Eclipse.ini configuration file is wrong, the configuration file-VM parameter setting error, in the Windows7 system needs to use
" / " Instead of
" \ "。
3. If an exception is thrown when starting Eclipse.exe Java was started but returned exit code =1
Eclipse is using the system, the default JRE, the IT finds in the Windows system folders. You should point it to a JDK installation using Eclipse.ini (as described Here:http://wiki.eclipse.org/eclipse.ini) ", the effect is When Eclipse starts, it defaults to using the JRE found in the Windows system directory as the default environment, and because I've upgraded the JDK before, the JRE in the system directory does not match the actual Java installation, so there is a situation where the Eclipse times error is running. So you need to manually modify the-VMparameter, and then start.
This article is from the "six-degree space" blog, be sure to keep this source http://jasonwalker.blog.51cto.com/7020143/1416714