[英]Running Eclipse Indigo on JDK7
I tried to run Eclipse Indigo on a JDK7 on Windows 7 32bit, But Eclipse.exe complains with a dialog telling me that no java virtual machine was found after searching at the given location. 我试图在Windows 7 32bit的JDK7上运行Eclipse Indigo,但是Eclipse.exe抱怨对话框提示我在给定位置搜索后未找到Java虚拟机。
I've tried multiple times to set the -vm argument to be sure, it just doesn't work. 我已经尝试过多次设置-vm参数,以确保它不起作用。 Any ideas why?
有什么想法吗?
Verify the JDK Installation 验证JDK安装
Essentially, run java -version
in the cmd, you should see the output. 本质上,在cmd中运行
java -version
,您应该看到输出。
See http://alexsmail.blogspot.com/2012/01/how-to-install-jdk-7.html step 3 请参阅http://alexsmail.blogspot.com/2012/01/how-to-install-jdk-7.html步骤3
Check your Environment Variables (JAVA_HOME and path). 检查您的环境变量(JAVA_HOME和路径)。
See http://alexsmail.blogspot.com/2012/01/how-to-install-jdk-7.html step 0 请参阅http://alexsmail.blogspot.com/2012/01/how-to-install-jdk-7.html步骤0
This is my eclipse.ini file which is in the same directory as eclipse.exe. 这是我的eclipse.ini文件,与eclipse.exe位于同一目录中。 -vm must be on it's own line and the path to javaw.exe must be on it's own line.
-vm必须在其自己的行上,并且javaw.exe的路径必须在其自己的行上。 I'm pretty sure I had to use forward slashes.
我很确定我必须使用正斜杠。 Also, -vmargs has to be the last thing in eclipse.ini.
另外,-vmargs必须是eclipse.ini中的最后一件事。
-vm C:/Program Files/Java/jdk1.6.0_31/bin/javaw.exe -vmargs -Dosgi.requiredJavaVersion=1.5 -Xms64m -Xmx512m -XX:PermSize=64m -XX:MaxPermSize=512m
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.