Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Eclipse broke on Mac OS X - need help
Eclipse broke on Mac OS X - need help [message #1837150] Fri, 22 January 2021 14:07 Go to next message
Eclipse UserFriend
Hi,
I had Eclipse Oxygen working fine until recently on my Mac. I recently updated to Big Sur and I think that broke Eclipse.

I have JRE 8 installed and working. I get the following text when java -version is run on the machine:

java version "1.8.0_191"
Java(TM) SE Runtime Environment (build 1.8.0_191-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.191-b12, mixed mode)

However, when I try to run Eclipse, I get a message that say:

Failed to create the Java Virtual Machine

Note that java is on the machine PATH. I get /usr/bin/java when I type "which java" on a Terminal window.
Re: Eclipse broke on Mac OS X - need help [message #1837153 is a reply to message #1837150] Fri, 22 January 2021 15:30 Go to previous message
Eclipse UserFriend
I was able to fix the problem by taking the following steps:

Even though 'java' was in the PATH, for some reason Eclipse was not able to find it. I modified ~/Eclipse.app/Contents/Info.plist file and explicitly specified the path for -vm. Here is a snippet from Info.plist file that works:

<key>Eclipse</key>
<array>
<!-- to use a specific Java version (instead of the platform's default) uncomment one of the following options,
or add a VM found via $/usr/libexec/java_home -V
<string>-vm</string><string>/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Commands/java</string>
<string>-vm</string><string>/Library/Java/JavaVirtualMachines/1.8.0.jdk/Contents/Home/bin/java</string>
-->
<string>-vm</string><string>/Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home/bin/java</string>
<string>-keyring</string>
<string>~/.eclipse_keyring</string>
<string>-showlocation</string>
</array>
Previous Topic:Groovy:General error during semantic analysis
Next Topic:[SOLVED] Eclipse 20-12 and 21-03 Java 16
Goto Forum:
  


Current Time: Sun Jul 06 05:17:17 EDT 2025

Powered by FUDForum. Page generated in 0.04468 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top