This is so frustrating.
I did no update of java nor eclipse and suddenly I can't open eclipse. I even didn't install any other programs. Here is the error:
I've tried everything. I updated to new java version and no luck on that:
I downloaded the newest eclipse and had no luck.
Then I updated eclipse's Info.plist file:
Added:
<string>-vm</string><string>/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Commands/java</string>
From terminal:
What else could I do?
EDIT:
Path variable:
EDIT 2: Strange behavior. If I go right click on eclipse.app and navigate through: Contents/MacOS/eclipse and double click it then a terminal opens and eclipse starts:
Why is that so. I want to run eclipse directly from eclipse.app, not through Contents/.....
EDIT 3:
I see that someone had the same exact problem as me but I haven' find the solution yet: http://www.eclipse.org/forums/index.php/t/107226/
At 'java Properties" window select the Compatibility tab and below the Settings pane, check the box Run this program as an administrator. Then click Apply and OK. 5. Finally, start the program that cannot run because of the "Could Not Create the Java Virtual Machine" error and see if the problem persists.
OK, after a few days of struggling and with no luck on this thread and Eclipse forums THREAD I started a bounty for this question and had no correct answer.
I found a solution to this problem (this stack).
ANSWER:
You need to edit the Eclipse.app/Contents/Info.plist file and add two lines in it:
Nowhere stated that this lines had to go in Eclipse array but just somewhere up as key-string.
If you don't have Xcode, edit that file with textedit:
<key>Eclipse</key>
<array>
<string>-vm</string>
<string>/System/Library/Frameworks/JavaVM.framework/Home/bin/java</string>
<string>-keyring</string>
<string>~/.eclipse_keyring</string>
<string>-showlocation</string>
</array>
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