Using latest jdk in eclipse for mac1/28/2024 Use a compatible VM here and the installer will modify the eclipse.ini for you.Įclipse - say Eclipse 2020-03 - runs with Java 11, Java 12, Java 13, but does not run with Java 14. In the installer you may select the VM used by Eclipse. Open Downloads/Eclipse\ Installer.app -args -vm /Library/Java/JavaVirtualMachines/jdk-11.0.2.jdk/Contents/Home/bin Where PATHTOECLIPSEINSTALLER is the path of the folder where Eclipse Installer is located and NAMEOFJDK is the name of the folder with the JDK (11, 12, 13). Open PATHTOECLIPSEINSTALLER/Eclipse\ Installer.app -args -vm /Library/Java/JavaVirtualMachines/NAMEOFJDK/Contents/Home/bin ![]() You can run Eclipse or the Eclipse Installer with a given VM without changing eclipse.ini by starting it via a command line: Note: The error " Failed to create the Java Virtual Machine" also exists with Eclipse 2020-03 (under some situations, see ) and it is not required to use Java 8 (with Eclipse 2020-03). Because I'm nowhere qualified to give a precise answer about this please take a look at the comments in case I got something wrong.Įdit: See Christian Fries answer who pointed out that all java versions 8 to 13 are supported by eclipse. Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/jre/ĭisclaimer: Please bare in mind that those were the steps I took to get eclipse running again. Open /Applications/Eclipse.app/Contents/ist nano /Applications/Eclipse.app/Contents/ist That being the version you installed in step 1. Tell Eclipse which Version to use by editing the /Applications/Eclipse.app/Contents/ist file as described by Juan Ignacio Barisich and Brad Parks. You have to tell Eclipse which Version of Java it should be using (see Step 2). If that is not the case and you have another Java Version installed. If this is the only Java Version you have installed you should be fine and Eclipse should open up. ![]() Install a supported version (I used Homebrew to install SDK V8 □): brew cask install adoptopenjdk/openjdk/adoptopenjdk8 The main takeaway was eclipse does not support SDK Version 14 (as of eclipse 2020-03). It took me some time to figure this out as well.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |