Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 Screenshot Then, i have installed Java Screenshot

Until now everything seems to be correct but when I open the Eclipse installer... Failed to create the java virtual machine screenshot

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

Thanks

like image 221
Oier Mentxaka Gomez Avatar asked Mar 19 '20 22:03

Oier Mentxaka Gomez


People also ask

Can we install eclipse on Mac?

To install eclipse on our MacOS, we must download the latest version of eclipse by visiting its official website or simply clicking the link http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/oxygen/1a/eclipse-java-oxygen-1a-macosx-cocoa-x86_64.dmg .

Where does eclipse install in Mac?

The eclipse. ini file is located in the Contents/MacOS folder.


2 Answers

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
like image 36
Coliban Avatar answered Oct 18 '22 01:10

Coliban


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.

like image 121
greg-449 Avatar answered Oct 18 '22 02:10

greg-449