Re: Why is /usr/lib/jvm/java-6-sun/sun-java6-6-12/jdk1.6.0_12 not recognized in update-alternatives?
On Sun, 15 Aug 2010 10:13:27 +0200, Merciadri Luca wrote:
> Camaleón wrote:
(...)
>> Try by manually forcing the full path to java bin:
>>
>> ***
>> ./eclipse -debug -vm
>> /usr/lib/jvm/java-6-sun/sun-java6-6-12/jdk1.6.0_12/jre/bin/java ***
>>
> Thanks for the trick. It first gives a box `No exit data available',
> then
>
> ==
> Start VM:
> /usr/lib/jvm/java-6-sun/sun-java6-6-12/jdk1.6.0_12/jre/bin/java
At least that path looks more "normal".
(...)
> -jar
> /home/merciadriluca/eclipse/plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
>
> Error occurred during initialization of VM
> java/lang/NoClassDefFoundError: java/lang/Object
It seems failing to load that ".jar" (is that "equinox" a plugin you
can omit just for testing?) :-?
(...)
> (quite the same as before).
Yes, it gets stuck at that point.
>> Also, run "which java" and put here the output
> ==
> $ which java
> /usr/local/bin/java
sm01@stt008:~$ which java
/usr/bin/java
> merciadriluca@merciadriluca-station:/usr/local/bin$ ls -al | grep java
> lrwxrwxrwx 1 root staff 59 2010-08-14 15:58 java -> /usr/lib/jvm/java-6-sun/sun-java6-6-12/jdk1.6.0_12/bin/java
sm01@stt008:~$ ls -l /usr/bin/java
lrwxrwxrwx 1 root root 22 nov 14 2009 /usr/bin/java -> /etc/alternatives/java
> I can't understand why it does not work.
Me neither... maybe it's just an Eclipse issue. Can you launch any other
java application and see if that works?
P.S. Also, consider unistalling Sun's java package (the one downloaded from
Oracle site) and getting the Sun's java package from Debian "non-free"
repo :-)
Greetings,
--
Camaleón
Reply to: