Maven: The Maven Integration requires that Eclipse be running in a JDK

上一篇 / 下一篇  2009-05-14 15:23:27 / 个人分类:Maven

The fully error message that you might get is as follows:

^%r6V:Z c_L0
The Maven Integration requires that Eclipse be running in a JDK, because a
:J'Ze k9HIm0number of Maven core plugins are using jars from the JDK.
6Hc6mA,O4Z2^Kj6`0
Ad:h!S K']5?P$m0Please make sure the -vm option in eclipse.ini is pointing to a JDK and verify
\*?7HF/\j2|7? n0that Installed JREs are also using JDK installs.51Testing软件测试网ZT1}WYD

To solve this problem add a new option into your eclipse.ini (which is located in your Eclipse installation folder):

v&d#w.~y6`x0
-vm C:\Program Files\Java\jdk1.6.0_06\bin\javaw.exe51Testing软件测试网0eL
j\x#A

It is important to have this line on the correct location, otherwise Eclipse will have no clue about this setting:

}2@-D/Ysa8h0
-showsplash51Testing软件测试网ijA+K
Sa2r$M_(F
org.eclipse.platform51Testing软件测试网c9u)lg0h
--launcher.XXMaxPermSize
"ix/`eOo `,?0256M51Testing软件测试网rU"C,si&{ I
-vm
vqJ'v-c,[ kk?0C:\Program Files\Java\jdk1.6.0_06\bin\javaw.exe51Testing软件测试网8zA X U4k,K;I.J4h
-vmargs51Testing软件测试网khZ*JK$sY
-Dosgi.requiredJavaVersion=1.551Testing软件测试网'Rj"pSt.Mu^d(m
-Xms40m51Testing软件测试网#~$@'d^&y/M5A&r
-Xmx512m
c%]KXG m0

It has to be before the -vmargs argument.51Testing软件测试网C-]&v^ |;h


TAG:

 

评分:0

我来说两句

Open Toolbar