java - 无法在Mac上安装Eclipse- “Failed to create the Java Virtual Machine”

标签 java eclipse

我正在尝试安装Eclipse,但是无法启动安装程序。它失败了

"Failed to create the Java Virtual Machine"



我该如何解决?

注意:我在Mac上。

最佳答案

编辑文件/Applications/Eclipse.app/Contents/Info.plist

有关于使用特定JVM的注释:

<key>Eclipse</key>
<array>
    <!-- to use a specific Java version (instead of the platform's default) uncomment one of the following options,
        or add a VM found via $/usr/libexec/java_home -V -->
    <string>-vm</string><string>/Library/Java/JavaVirtualMachines/jdk8u192-b12/Contents/Home/jre/</string>
    <string>-keyring</string>
    <string>~/.eclipse_keyring</string>
</array>

关于java - 无法在Mac上安装Eclipse- “Failed to create the Java Virtual Machine”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52652846/

相关文章:

java - 我可以在没有 GWT 支持的情况下使用 WindowBuilder(Java 可视化编辑器 Eclipse 插件)吗?

java - 为什么异步网络调用的回调方法在Activity结束时不会造成内存泄漏?

java - 在 Java 中处理排序组

javascript - 无法在 eclipse 中的 angularjs 中路由

带有 Eclipse 的 Java - 丢失的设计页面

java - Android Studio播放和录制音频错误。 'Cannot Resolve Sybmol'和 'Cannot Resolve method '

java - 如何显示数组中 2 个数字之间的信息数量?

java - 哪些表情符号可以用作 Java 中的变量,在 Eclipse 中可见?

java - 类奇怪错误

c - "jump to first/next error"的 Eclipse key ?