星期三, 三月 25, 2009

Eclipse的java环境配置 When Eclipse cannot be started, only shows a startup picture

When open Eclipse, it shows a picture without enabling the program.
Type java -version in command window, which shows 1.3.1

We tried to change the environment variable, didn't work.

We tried to add a -vm “C:\jre1.6.0_1\bin\javaw.exe” to Eclipse's short cut, but a dialogue window prompt out.
But it works when change the short cut path to J2SDK:

C:\…\eclipse\eclipse.exe -vm “C:\j2sdk1.4.2_14\bin\javaw.exe”

 

上次写过一篇JAVA Runtime Environment 出错的解决 ,结果今天装了Eclipse又跟JRE扛上了。这次java版本升级到1.6,结果在cmd里面打java -version结果又是1.3.1。把环境变量里的所有1.5.0改成1.6.0还不行。

后来某牛人帮偶给Eclipse.exe做了一个快捷方式,在地址后面加了一个-vm "java路径",即

C:\...\eclipse\eclipse.exe -vm "C:\j2sdk1.4.2_14\bin\javaw.exe"

但是加jre路径是不行的,会有一个对话框出来,报了一堆参数。然后我改成J2SDK的路径就可以了。

没有评论: