I'm new to Java and found it's hard to install on my Mac. I read similar past questions and tried their solutions, but none works.
So far, I installed the latest version of jdk-14 and use eclipse-java-mars-2-macosx-cocoa-x86_64.tar. Also, I tried add -vm to eclipse.ini. Now it's like:
-startup
../Eclipse/plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar
--launcher.library
../Eclipse/plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.300.v20150602-1417
-product
org.eclipse.epp.package.java.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vm
"/Library/Java/JavaVirtualMachines/jdk-14.jdk/Contents/Home/bin"
-vmargs
-Dosgi.requiredJavaVersion=1.7
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
-XX:MaxPermSize=256m
-Xms256m
-Xmx1024m
-Xdock:icon=../Resources/Eclipse.icns
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
But still got error message saying A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. error message
Yet without this line, the error is "Failed to create the Java Virtual Machine".
Any help will be appreciated!!