java - 安装 Android SDK 发现 JDK 从 Eclipse 中删除了 javaw.exe

标签 java android eclipse windows-8 path

使用此解决方案后https://stackoverflow.com/a/10025861/2654421要让 Android SDK 安装程序在 Windows8 x64 上通过 PATHC:/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 named eclipse.ini.
To specify a JVM using configuration file, include the -vm argument in eclipse.ini, for example:

-vm
c:/jre/bin/javaw.exe

关于java - 安装 Android SDK 发现 JDK 从 Eclipse 中删除了 javaw.exe,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18067052/

相关文章:

java - 如何有效地批量更新 SQLite 中项目的标签列表?

android - 尝试为android开发配置eclipse

java - clientApplicationContext xml 文件出现问题

java - 用 Java 8 CompletableFuture 替换 Futures.successfulAsList?

c# - Java和C#之间的通信

android - 如何设置我的 ACTION BAR 支持从右到左

java - 从字节数组 java 创建 BufferedImage

java - 为什么 Eclipse 不重新编译对我的 Java 类所做的最后更改?

java - 处理最终字段为空的 csv 字符串时,myString.split( ",") 返回不正确的数组条目数

Java服务器如何处理Client请求并响应呢?