Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Not able to run Eclipse on macOS Big Sur

Tags:

macos

eclipse

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

Error pic

The java version I am running: The java version I am running is showed in the pic

like image 772
Aayush Agarwal Avatar asked Jun 29 '20 22:06

Aayush Agarwal


People also ask

Does Eclipse work on macOS Big Sur?

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.

Does Java work on Mac Big Sur?

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.


1 Answers

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.

like image 114
bytesgo Avatar answered Nov 04 '22 17:11

bytesgo