eclipse中指定jdk的运行版本:
-vm D:/software/jdk1.7.0_71/bin/javaw.exe
-startup plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar --launcher.library plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.100.v20110502 -product org.eclipse.epp.package.jee.product --launcher.defaultAction openFile --launcher.XXMaxPermSize 128M -showsplash org.eclipse.platform --launcher.XXMaxPermSize 128m --launcher.defaultAction openFile -vmargs -Dosgi.requiredJavaVersion=1.7 -Xms512m -Xmx512m在一个环境中,需要多个jdk的版本时,可以安装绿色版的jdk;
在安装jdk的时候,可能出现问题:
1.Error: could not open `C:\Java\jre7\lib\amd64\jvm.cfg
jdk安装时,原jdk会在注册表中有记录,删除 HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.7.0_45\MSI\下,整个JavaSoft删除即可;
2. Error: opening registry key 'Software\JavaSoft\Java Runtime Environment'
Error: could not find java.dll Error: Could not find Java SE Runtime Environment.Path系统环境变量中,把%JAVA_HOME%\bin调整到最前面.