某个Eclipse无法启动的问题

Eclipse3.7.1,jdk7
安装了maven插件,重启eclipse,报一个警告:
Eclipse is running in a JRE, but a JDK is required.
Some Maven plugins may not work when importing projects or updating source folders.

搜了一下方法,就是在eclipse.ini里加上这一句:
-vm
D:/Java/jdk1.7.0_02/bin/javaw.exe

但这段时间不知道我做了什么,弄得eclipse无法启动了,报一个错误:

Error: Could not create the Java Virtual Machine.r

Error: A fatal exception has occurred. Program will exit.

好吧,Google搜,在 这里 说要在eclipse.ini里把我之前加上的-vm那一项去掉。我去掉了-vm项,结果maven又报警告了:Some Maven plugins may not work when importing projects or updating source folders.

 

后来,发现可能的问题所在了:我的path中使用的jdk6,而我的-vm里指向的却是jdk7.

最后,将path和eclipse.ini里的配置保持一致,问题解决:某个Eclipse无法启动的问题_第1张图片

你可能感兴趣的:(eclipse,jdk,maven,exception,Path,plugins)