I am not able to run eclipse on macOS Big Sur developers beta I am getting an error stating "Failed to create the java virtual machine". Is there any way to solve the error
The java version I am running:
Just like other apps that broke down after the Big Sur update, Eclipse does not work well with the new macOS because of compatibility issues. Big Sur came with a lot of changes, not only in terms of UI, but under the hood as well. And one of those changes might be causing the error you're getting when using Eclipse.
Mac OS X 10.7 (Lion) and above: Java is not pre-installed with Mac OS X versions 10.7 and above. To get the latest Java from Oracle, you will need Mac OS X 10.7. 3 and above. If you have Java 7 or later versions, you will see a Java icon under System Preferences.
I have the same issue. I solve it by opening /Applications/Eclipse.app/Contents/Info.plist and adding:
<string>-vm</string><string>/Library/Java/JavaVirtualMachines/jdk1.8.0_201.jdk/Contents/Home/bin/java</string>
inside
<key>Eclipse</key> <array> ADD HERE! </array>
Of course the "/Library/Java/JavaVirtualMachines/jdk1.8.0_201.jdk/Contents/Home/bin/java" value must be replaced with the actual path based on the JDK version you are using.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With