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

Re: Why is /usr/lib/jvm/java-6-sun/sun-java6-6-12/jdk1.6.0_12 not recognized in update-alternatives?



Camaleón wrote:
> On Sat, 14 Aug 2010 13:45:31 +0200, Merciadri Luca wrote:
>
> (...)
>
>   
>> Really nice, but Eclipse seems not to like it that much:
>>
>> ==
>> 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 locations:
>> /home/merciadriluca/eclipse/jre/bin/java java in your current PATH
>> ==
>>
>> Why?
>>     
>
> It clearly states that Eclipse is looking for the java bin into the wrong 
> place: "/home/merciadriluca/eclipse/jre/bin/java"
>
> Two ideas on how to by-pass this:
>
> 1/ If Eclipse has an option to edit the path to the avilable JRE, just 
> change it from there, or just by manually editing "/etc/eclipse/
> java_home".
>
> 2/ Make a symbolic link (ln -s) from your home's Eclipse java path 
> pointing to the current (system-wide) java path.
>   
I've choosen the latter, which then makes

==
$ eclipse/eclipse
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object
==

Why?

-- 
Merciadri Luca
See http://www.student.montefiore.ulg.ac.be/~merciadri/
I use PGP. If there is an incompatibility problem with your mail
client, please contact me.




Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: