Eclipse – Not able to run Eclipse on macOS Big Sur

eclipsemacos

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

Best Answer

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.