Camaleón wrote: > 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?) :-? > I installed eclipse without any additional plugins. It looks like Equinox (http://en.wikipedia.org/wiki/Equinox_(OSGi)) is mandatory. > (...) > > >> (quite the same as before). >> > > Yes, it gets stuck at that point. > Yes. >>> Also, run "which java" and put here the output >>> >> == >> $ which java >> /usr/local/bin/java >> > > s...@stt008:~$ which java > /usr/bin/java > > >> merciadril...@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 >> > > s...@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? > Yes, I can, but the result is negative: no other java app 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 :-) > # apt-get install sun-java6-plugin sun-java6-jre sun-java6-jdk sun-java6-bin Reading package lists... Done Building dependency tree Reading state information... Done sun-java6-jre is already the newest version. sun-java6-jdk is already the newest version. sun-java6-bin is already the newest version.
Good news. I looked thoroughly in /usr/lib/jvm, and discovered that there was also a java-6-sun-1.6.0.20 folder, whose bin/ was containing java. I managed to make it default: # update-alternatives --config java There are 3 alternatives which provide `java'. Selection Alternative ----------------------------------------------- 1 /usr/bin/gij-4.3 + 2 /usr/lib/jvm/java-gcj/jre/bin/java * 3 /usr/lib/jvm/java-6-sun-1.6.0.20/bin/java and now Eclipse works like a charm. The Sun's version is actually incompatible in some way with Debian (Lenny, at least). The java-6-sun-1.6.0.20 was already installed, and comes from the non-free depos. But it was not recognized (and interpreted) by update-alternatives. Why? The problem is that I can't deinstall the other one (I see no way, either on Google, or here). It is also in /usr/bin/java. Any idea? Thanks. -- 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.
signature.asc
Description: OpenPGP digital signature