[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: can`t start eclipse



On Monday 09 January 2006 01:19, Roman Makurin wrote:
> Hi All!
>
> I can`t start eclipse. It gives me error everytime I trying to launch it:
> "A suitable Java Virtual Machine for running the Eclipse Platform could not
> be located."
>
> here is console output:
> $ eclipse
> searching for compatible vm...
>   testing /usr/lib/jvm/java-gcj...found
>
> $ sudo update-alternatives --list java
> Password:
> /usr/bin/gij-wrapper-4.0
> /usr/lib/jvm/java-gcj/bin/java
> /etc/alternatives/kaffe-system/bin/java
> /usr/lib/j2sdk1.4-sun/bin/java
>
> $ sudo update-alternatives --display java
> java - status is manual.
>  link currently points to /usr/lib/jvm/java-gcj/bin/java
> /usr/bin/gij-wrapper-4.0 - priority 40
>  slave rmiregistry: /usr/bin/grmiregistry-4.0
>  slave rmiregistry.1.gz: /usr/share/man/man1/grmiregistry-4.0.1.gz
>  slave java.1.gz: /usr/share/man/man1/gij-wrapper-4.0.1.gz
> /usr/lib/jvm/java-gcj/bin/java - priority 1040
>  slave java.1.gz: /usr/lib/jvm/java-gcj/man/man1/java.1.gz
> /etc/alternatives/kaffe-system/bin/java - priority 300
>  slave java.1.gz: /usr/share/man/man1/java.kaffe.1.gz
> /usr/lib/j2sdk1.4-sun/bin/java - priority 314
>  slave java.1.gz: /usr/lib/j2sdk1.4-sun/man/man1/java.1.gz
> Current `best' version is /usr/lib/jvm/java-gcj/bin/java.
>
> What I need to do to be able to use eclipse :)
>
> Thanks
If you want to change the alternative for all java apps then
use update-alternatives, otherwise create your own startup
script which sets JAVA_HOME to point at the SDK you 
want to use and then start eclipse.

David



Reply to: