使用此解决方案后https://stackoverflow.com/a/10025861/2654421要让 Android SDK 安装程序在 Windows8 x64 上通过 PATH
到 C:/Windows/system32/java.exe
查找 java,我无法再打开 Eclipse,因为它可以'在 PATH 中找不到 javaw.exe。我很确定我已经通过将 java.exe 从 PATH
删除到 C:/Windows/system32/
来修复此问题,但我无法检查Android SDK 仍然可以找到 java,因为它当前正在安装 SDK。谁能告诉我现在是否损坏了其他东西?
最佳答案
常见问题解答部分 Find the JVM可能感兴趣:
Eclipse DOES NOT consult the
JAVA_HOME
environment variable.To explicitly specify a JVM of your choice, you can use the
-vm
command line argument:
eclipse -vm c:\jre\bin\javaw.exe ''start Java by executing the specified java executable
eclipse -vm c:\jre\bin\client\jvm.dll ''start Java by loading the jvm in the eclipse process
有关指定 JVM 的更多详细信息,请参阅启动器页面。 eclipse.ini
The most recommended way to specify a JVM for Eclipse to run in is to put startup configuration into the
eclipse.ini
file in the same folder as the Eclipse executable (eclipse.exe
on Windows).
The Eclipse program launcher will read arguments from either the command-line or the configuration file namedeclipse.ini
.
To specify a JVM using configuration file, include the-vm
argument ineclipse.ini
, for example:
-vm
c:/jre/bin/javaw.exe
关于java - 安装 Android SDK 发现 JDK 从 Eclipse 中删除了 javaw.exe,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18067052/