MacOSX Snow Leopard and Eclipse: Error starting Eclipse (No Java virtual machine…)?

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.

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: Eclipse -vm /System/Library/Frameworks/JavaVM.

Framework/Home/bin/java -keyring ~/. Eclipse_keyring -showlocation.

Try moving your workspace and deleting the configs (rm -rf ~/. Eclipse). Sometimes Eclipse messes up its env and needs to be reset.

I don't have . Eclipse file in -rf ~/ – vale4674 Jul 11 at 13:49 Please see my Edit no 2. – vale4674 Jul 11 at 14:07 Where could I find .

Eclipse file because it is not in my . / folder? – vale4674 Jul 12 at 9:10 If your .

Eclipse folder is not in ~ then it might be in the Eclipse folder itself in eclipse/. Eclipseproduct . – Michael Shopsin 4 Jul7 at 14:37 Should I then delete that file?

--> . Eclipseproduct? There are only 3 lines in that file and they don't look like some configuration lines: LINE 1:name=Eclipse Platform LINE 2:id=org.eclipse.

Platform LINE 3:version=3.7.0 – vale4674 Jul 12 at 23:26.

Editing the plist file is not the recommended way of setting the JVM. See wiki.eclipse.org/FAQ_How_do_I_run_Eclips... and it points you to wiki.eclipse.org/Eclipse.ini#Specifying_... Basically inside Eclipse. App/MacOS/eclipse.

Ini is where you'll want to specify command line arguments that get passed to eclipse by default. Granted the plist's array of arguments are also used, but that isn't how the Eclipse docs themselves recommend setting arguments (and it is possible that as a result, it might get wiped when you update Eclipse again). You'd want to remove the vm entry from that Array in the plist and instead add the following in the eclipse.

Ini before "-vmargs": -vm /System/Library/Frameworks/JavaVM. Framework/Versions/1.6.0/Home/bin/java.

Try to add this to your ~/. Profile export JAVA_HOME=/System/Library/Frameworks/JavaVM. Framework/Versions/1.6.0/Home/ export PATH=$JAVA_HOME/bin:$PATH.

Did that. I needed to create . Profile file.

Edited it with nano. Now my PATH variable looks like this: img577.imageshack. Us/img574 Jul/screenshot20110711at358.

Png but still the same error while starting eclipse. – vale4674 Jul 11 at 13:59 Please see my Edit no 2. – vale4674 Jul 11 at 14:06 I have included JDK in PATH variable but the same error appears.

I'm out of ideas. – vale4674 Jul 12 at 9:07.

You need to create a file ~/. MacOSX/environment. Plist and add JAVA_HOME => /Library/Java/Home entry into it.

If you have XCode installed, use it to add entry. Otherwise, use plain text editor: JAVA_HOME /Library/Java/Home After that, restart MaxOS or logout/login. See http://developer.apple.com/library/mac/#documentation/MacOSX/Conceptual/BPRuntimeConfig/Articles/EnvironmentVars.html for details.

Cheers, Max.

I already did that few days ago but this is not the solution. I just found a solution a few moments ago and answered my question. Cheers.

– vale4674 Jul 15 at 9:50 Did you cleanup eclipse's Info. Plist changes you made? – Max Jul 15 at 16:26 I don't understand.

I put a picture of mine Info. Plist in my answer. – vale4674 Jul 16 at 11:09 1 I mean that you have to cleanup any alterations you made to Info.

Plist in order to test enviroment. Plist solution. – Max Jul 17 at 4:29.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions