Eclipse not working on MAC OSX – No java virtual machine was found

Do you receive this message?

A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse

No Java virtual machine was found after searching the following location

Home/jre/bin/java
Java in your current PATH

Eclipse not working on MAC OSX – No java virtual machine was found

Eclipse not working on MAC OSX – No java virtual machine was found

Solution

In the Eclipse.app/Contents/MacOS/eclipse.ini file put

-vm /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home/bin/java

right before

-vmargs

Pay attention, the carriage return is important after “-vm”

eclipse not working - No java virtual machine was found - MAC OS X

eclipse not working – No java virtual machine was found – MAC OS X

Remaining issue

On my computer, after installing aptana studio 3 (http://www.aptana.com), the Eclipse.app/Contents/MacOS/eclipse.ini was overwritten and I had to update the file again

Source: http://stackoverflow.com/questions/5898111/eclipse-not-working-no-java-virtual-machine-was-found

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s