简体   繁体   中英

Eclipse Installation on macOS

I have formatted my Mac due to some storage issues. Before this, I used Eclipse in a proper way. Now i have installed the JDK截屏 Then, i have installed Java截屏

Until now everything seems to be correct but when I open the Eclipse installer...创建java虚拟机失败截图

What can I do to fix this? I need to work with this the soon as possible.

Thanks

Eclipse on macOS will not start with Java 14 installed, this is being tracked in Eclipse bug 561273 .

Installing Java 8 as well does not help. You need to remove the Java 14 install. You could use the Java 13.0.2 release instead.

Eclipse have determined that the root cause of this issue is a change in Java 14 which is described in this bug report JDK-8238225 . The fix for this should be in Java 14.0.1

Update: Eclipse runs fine with Oracle Java 14.0.1 so the issue has been fixed.

I also asked this question which was closed, that's why I answer what I have found out: Eclipse will not install on Mac OS Catalina 10.15.4, saying the above error message

Failed to create the Java Virtual Machine.

Deinstalling jdk and install an older one wouldn't help on its own because Eclipse is refusing to install in the first place (as mentioned above). What I have done:

  • i´ve installed an JDK with boost (you can try several, mine worked with Version 13)
  • I edited the installer:
    1. Download the dmg file
    1. convert the dmg-file with "hdiutil convert /dev/disk3s1 -format UDRW -o devimage"
    1. mount the converted dmg-file with: "hdiutil attach -owners on devimage.dmg -shadow"
    1. Edit the /Volumes/Eclipse/Eclipse.app/Contents/Info.plist: there is a section which is commented and there you can try the jdk version. You have to give the full path to the java executable, for example:

 <string>-vm</string><string>/Library/Java/JavaVirtualMachines/jdk-13.0.2.jdk/Contents/Home/bin/java</string>

  • Then my eclipse started from the (already) mounted Eclipse image without complaining

I had the same issue myself a while back. In your Eclipsepedia it provided an example of what the eclipse.ini file looks like when your trying to specify a JVM. So just change the eclipse.ini file and then make sure that you have all of the correct documents in that path to match the example.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM