Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 19:07 Go to next message
Imran Hussain is currently offline Imran HussainFriend
Messages: 2
Registered: January 2021
Junior Member
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 20:30 Go to previous message
Imran Hussain is currently offline Imran HussainFriend
Messages: 2
Registered: January 2021
Junior Member
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:Problem with Externalize string dilaog
Goto Forum:
  


Current Time: Tue Apr 20 20:56:20 GMT 2021

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

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

Back to the top