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

2010-08-15 Thread Merciadri Luca
Camaleón wrote:
 On Sat, 14 Aug 2010 21:00:10 +0200, Merciadri Luca wrote:

   

   

 (...)

   

 (...)

   

 The above path... not sure if it's right.

 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
-Dosgi.requiredJavaVersion=1.5
-XX:MaxPermSize=256m
-Xms40m
-Xmx384m
-jar
/home/merciadriluca/eclipse/plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
-os linux
-ws gtk
-arch x86
-showsplash
-launcher /home/merciadriluca/eclipse/eclipse
-name Eclipse
--launcher.library
/home/merciadriluca/eclipse/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.1.0.v20100503/eclipse_1307.so
-startup
/home/merciadriluca/eclipse/plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
-exitdata 158007
-product org.eclipse.epp.package.java.product
-debug
-vm /usr/lib/jvm/java-6-sun/sun-java6-6-12/jdk1.6.0_12/jre/bin/java
-vmargs
-Dosgi.requiredJavaVersion=1.5
-XX:MaxPermSize=256m
-Xms40m
-Xmx384m
-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
==

then

==
JVM terminated. Exit code=1
/usr/lib/jvm/java-6-sun/sun-java6-6-12/jdk1.6.0_12/jre/bin/java
-Dosgi.requiredJavaVersion=1.5
-XX:MaxPermSize=256m
-Xms40m
-Xmx384m
-jar
/home/merciadriluca/eclipse/plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
-os linux
-ws gtk
-arch x86
-showsplash
-launcher /home/merciadriluca/eclipse/eclipse
-name Eclipse
--launcher.library
/home/merciadriluca/eclipse/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.1.0.v20100503/eclipse_1307.so
-startup
/home/merciadriluca/eclipse/plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
-exitdata 158007
-product org.eclipse.epp.package.java.product
-debug
-vm /usr/lib/jvm/java-6-sun/sun-java6-6-12/jdk1.6.0_12/jre/bin/java
-vmargs
-Dosgi.requiredJavaVersion=1.5
-XX:MaxPermSize=256m
-Xms40m
-Xmx384m
-jar
/home/merciadriluca/eclipse/plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar

==

(quite the same as before).
 Also, run which java and put here the output
==
$ which java
/usr/local/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
==

I can't understand why it does not work.

-- 
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


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

2010-08-15 Thread Camaleón
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

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?

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


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/pan.2010.08.15.11.35...@gmail.com



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

2010-08-15 Thread Merciadri Luca
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'.

  SelectionAlternative
---
  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


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

2010-08-15 Thread Camaleón
On Sun, 15 Aug 2010 15:03:35 +0200, Merciadri Luca wrote:

 Camaleón wrote:

(...)

 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.

Ugh...

 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:

(...)

Glad you finally got it working :-)

(...)

 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. 

That is what I have, yes.

 But it was not recognized (and interpreted) by
 update-alternatives. Why?

Dunno, I have no problems at all with the Sun's Java version of Debian 
repos, but I only got JRE, not the developem branch (JDK) :-?

 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?

This should help, at least for JRE:

***
How do I uninstall Java for Linux?
http://java.com/en/download/help/linux_uninstall.xml#jre
***

It seems that you only have to delete the folder.

Greetings,

-- 
Camaleón


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/pan.2010.08.15.13.27...@gmail.com



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

2010-08-15 Thread Merciadri Luca
Camaleón wrote:
 On Sun, 15 Aug 2010 15:03:35 +0200, Merciadri Luca wrote:

   
 Camaleón wrote:
 

 (...)

   
 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.
 

 Ugh...

   
 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:
 

 (...)

 Glad you finally got it working :-)

 (...)

   
 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. 
 

 That is what I have, yes.

   
 But it was not recognized (and interpreted) by
 update-alternatives. Why?
 

 Dunno, I have no problems at all with the Sun's Java version of Debian 
 repos, but I only got JRE, not the developem branch (JDK) :-?

   
 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?
 

 This should help, at least for JRE:

 ***
 How do I uninstall Java for Linux?
 http://java.com/en/download/help/linux_uninstall.xml#jre
 ***

 It seems that you only have to delete the folder.
   
That's what I thought too. Thanks, then.

-- 
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


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

2010-08-14 Thread Merciadri Luca
Camaleón wrote:
 On Fri, 13 Aug 2010 22:57:11 +0200, Merciadri Luca wrote:

   
 Camaleón wrote:
 

 (...)

   
 ***
 update-alternatives --install /usr/bin/java java
 /usr/lib/jvm/java-6-sun/sun-java6-6-12/jdk1.6.0_12/jre/bin/java 1 ***
   
   
 Thanks for this. And about java-update-alternatives? Is one more
 prioritary than another? (See my last message, which was apparently not
 sent.)
 

 True is that I was totally unaware about the availability of the command  
 Jordan suggested, so I am as lost as you here O:-)
   
Well, I configured update-alternatives this:

==
# update-alternatives --config java

There are 3 alternatives which provide `java'.

  SelectionAlternative
---
  1/usr/bin/gij-4.3
 +2/usr/lib/jvm/java-gcj/jre/bin/java
* 3/usr/lib/jvm/java-6-sun/sun-java6-6-12/jdk1.6.0_12/bin/java
==

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?

==
$ file /usr/lib/jvm/java-6-sun/sun-java6-6-12/jdk1.6.0_12/bin/java
/usr/lib/jvm/java-6-sun/sun-java6-6-12/jdk1.6.0_12/bin/java: ELF 32-bit
LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses
shared libs), for GNU/Linux 2.2.5, not stripped
==

though.

-- 
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


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

2010-08-14 Thread Camaleón
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.

Greetings,

-- 
Camaleón


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/pan.2010.08.14.12.21...@gmail.com



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

2010-08-14 Thread Merciadri Luca
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.






signature.asc
Description: OpenPGP digital signature


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

2010-08-14 Thread Camaleón
On Sat, 14 Aug 2010 15:17:14 +0200, Merciadri Luca wrote:

 Camaleón wrote:

(...)

 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?

He, he... you can also Google a bit, it won't hurt ;-)

http://www.google.com/webhp?hl=en#hl=enq=eclipse+java%2Flang%2FNoClassDefFoundError%3A+java%2Flang%2FObjectfp=e2910437e368fcc

Greetings,

-- 
Camaleón


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/pan.2010.08.14.13.45...@gmail.com



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

2010-08-14 Thread Merciadri Luca
Camaleón wrote:
 On Sat, 14 Aug 2010 15:17:14 +0200, Merciadri Luca wrote:

   
 Camaleón wrote:
 

 (...)

   
 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?
 

 He, he... you can also Google a bit, it won't hurt ;-)

 http://www.google.com/webhp?hl=en#hl=enq=eclipse+java%2Flang%2FNoClassDefFoundError%3A+java%2Flang%2FObjectfp=e2910437e368fcc
   
Well, I've no problem with Googling, but I should have mentioned that
the aforementioned message appears when launching eclipse. As a result,
I can't even see Eclipse's GUI. Results on Google show persons having
problems compiling, running/debugging, etc., their files under Eclipse.
But I can't run Eclipse!

-- 
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


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

2010-08-14 Thread Camaleón
On Sat, 14 Aug 2010 15:53:02 +0200, Merciadri Luca wrote:

 Camaleón wrote:

(...)

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

 Why?
 
 
 He, he... you can also Google a bit, it won't hurt ;-)

 http://www.google.com/webhp?hl=en#hl=enq=eclipse+java%2Flang%
2FNoClassDefFoundError%3A+java%2Flang%2FObjectfp=e2910437e368fcc
   
 Well, I've no problem with Googling, but I should have mentioned that
 the aforementioned message appears when launching eclipse. As a result,
 I can't even see Eclipse's GUI. Results on Google show persons having
 problems compiling, running/debugging, etc., their files under Eclipse.
 But I can't run Eclipse!

Can you launch eclipse with some -debug option? Maybe you'll get 
additonal information.

Greetings,

-- 
Camaleón


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/pan.2010.08.14.14.24...@gmail.com



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

2010-08-14 Thread Merciadri Luca
Camaleón wrote:
 Can you launch eclipse with some -debug option? Maybe you'll get 
 additonal information.
   
Sure.

==
$ ./eclipse -debug
Start VM: -Dosgi.requiredJavaVersion=1.5
-XX:MaxPermSize=256m
-Xms40m
-Xmx384m
-Djava.class.path=/home/merciadriluca/eclipse/plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
-os linux
-ws gtk
-arch x86
-showsplash
/home/merciadriluca/eclipse//plugins/org.eclipse.platform_3.6.0.v201006080911/splash.bmp
-launcher /home/merciadriluca/eclipse/eclipse
-name Eclipse
--launcher.library
/home/merciadriluca/eclipse/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.1.0.v20100503/eclipse_1307.so
-startup
/home/merciadriluca/eclipse/plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
-product org.eclipse.epp.package.java.product
-debug
-vm
/usr/lib/jvm/java-6-sun/sun-java6-6-12/jdk1.6.0_12/bin/../jre/lib/i386/client/libjvm.so
-vmargs
-Dosgi.requiredJavaVersion=1.5
-XX:MaxPermSize=256m
-Xms40m
-Xmx384m
-Djava.class.path=/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
==

Nothing interesting there.


-- 
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.


Give a man a fish and you feed him for a day; teach a man to fish and
you feed him for a lifetime.



signature.asc
Description: OpenPGP digital signature


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

2010-08-14 Thread Camaleón
On Sat, 14 Aug 2010 21:00:10 +0200, Merciadri Luca wrote:

 Camaleón wrote:

 Can you launch eclipse with some -debug option? Maybe you'll get
 additonal information.
   
 Sure.
 
 ==
 $ ./eclipse -debug

(...)

 -vm
 /usr/lib/jvm/java-6-sun/sun-java6-6-12/jdk1.6.0_12/bin/../jre/lib/i386/client/libjvm.so

(...)

 Error occurred during initialization of VM
 java/lang/NoClassDefFoundError: java/lang/Object ==
 
 Nothing interesting there.

The above path... not sure if it's right.

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
***

Also, run which java and put here the output.

Greetings,

-- 
Camaleón


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/pan.2010.08.14.21.29...@gmail.com



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

2010-08-13 Thread Camaleón
On Fri, 13 Aug 2010 18:45:54 +0200, Merciadri Luca wrote:

 Some months ago, I installed a Sun VM and SDK (I think this is so): jdk
 1.6.0-12. I think that it was a .bin, and it resulted in the whole being
 installed at /usr/lib/jvm/java-6-sun/sun-java6-6-12/jdk1.6.0_12. The
 problem is that it looks like unrecognized by update-alternatives:
 
 # update-alternatives --config java
 There are 2 alternatives which provide `java'.
 
   SelectionAlternative
 ---
   1/usr/bin/gij-4.3
 *+2/usr/lib/jvm/java-gcj/jre/bin/java
 
 
 Why? 

I think because you installed the package from outside Debian repos and 
so it got not recognized inside the whole package database.

***
ls -l /etc/alternatives | grep java-6-sun
***

If it's not there, I guess it won't be detected/managed by update-
alternatives :-?

 What can I do to make it recognized?

Hmmm, by creating a symbolic link in the above dir? But maybe not the 
better way, though. I would read man update-alternatives to find out.

Greetings,

-- 
Camaleón


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/pan.2010.08.13.17.15...@gmail.com



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

2010-08-13 Thread Merciadri Luca
Camaleón wrote:
 On Fri, 13 Aug 2010 18:45:54 +0200, Merciadri Luca wrote:

   

 I think because you installed the package from outside Debian repos and 
 so it got not recognized inside the whole package database.

 ***
 ls -l /etc/alternatives | grep java-6-sun
 ***

 If it's not there, I guess it won't be detected/managed by update-
 alternatives :-?

   

 Hmmm, by creating a symbolic link in the above dir? But maybe not the 
 better way, though. I would read man update-alternatives to find out.
   
It's there:

==
# ls -l /etc/alternatives | grep java-6-sun
lrwxrwxrwx 1 root root  40 2010-07-23 16:18 appletviewer -
/usr/lib/jvm/java-6-sun/bin/appletviewer
lrwxrwxrwx 1 root root  31 2010-07-23 16:18 apt -
/usr/lib/jvm/java-6-sun/bin/apt
lrwxrwxrwx 1 root root  44 2010-07-23 16:18 ControlPanel -
/usr/lib/jvm/java-6-sun/jre/bin/ControlPanel
lrwxrwxrwx 1 root root  36 2010-07-23 16:18 extcheck -
/usr/lib/jvm/java-6-sun/bin/extcheck
lrwxrwxrwx 1 root root  41 2010-07-23 16:18 HtmlConverter -
/usr/lib/jvm/java-6-sun/bin/HtmlConverter
lrwxrwxrwx 1 root root  32 2010-07-23 16:18 idlj -
/usr/lib/jvm/java-6-sun/bin/idlj
lrwxrwxrwx 1 root root  37 2010-07-23 16:18 jarsigner -
/usr/lib/jvm/java-6-sun/bin/jarsigner
lrwxrwxrwx 1 root root  33 2010-07-23 16:18 javac -
/usr/lib/jvm/java-6-sun/bin/javac
lrwxrwxrwx 1 root root  35 2010-07-23 16:18 javadoc -
/usr/lib/jvm/java-6-sun/bin/javadoc
lrwxrwxrwx 1 root root  33 2010-07-23 16:18 javah -
/usr/lib/jvm/java-6-sun/bin/javah
lrwxrwxrwx 1 root root  33 2010-07-23 16:18 javap -
/usr/lib/jvm/java-6-sun/bin/javap
lrwxrwxrwx 1 root root  40 2010-07-23 16:18 java-rmi.cgi -
/usr/lib/jvm/java-6-sun/bin/java-rmi.cgi
lrwxrwxrwx 1 root root  39 2010-07-23 16:18 java_vm -
/usr/lib/jvm/java-6-sun/jre/bin/java_vm
lrwxrwxrwx 1 root root  38 2010-07-23 16:18 javaws -
/usr/lib/jvm/java-6-sun/jre/bin/javaws
lrwxrwxrwx 1 root root  36 2010-07-23 16:18 jconsole -
/usr/lib/jvm/java-6-sun/bin/jconsole
lrwxrwxrwx 1 root root  40 2010-07-23 16:18 jcontrol -
/usr/lib/jvm/java-6-sun/jre/bin/jcontrol
lrwxrwxrwx 1 root root  31 2010-07-23 16:18 jdb -
/usr/lib/jvm/java-6-sun/bin/jdb
lrwxrwxrwx 1 root root  37 2010-07-23 16:18 jexec -
/usr/lib/jvm/java-6-sun/jre/lib/jexec
lrwxrwxrwx 1 root root  42 2010-07-23 16:18 jexec-binfmt -
/usr/lib/jvm/java-6-sun/jre/lib/jar.binfmt
lrwxrwxrwx 1 root root  32 2010-07-23 16:18 jhat -
/usr/lib/jvm/java-6-sun/bin/jhat
lrwxrwxrwx 1 root root  33 2010-07-23 16:18 jinfo -
/usr/lib/jvm/java-6-sun/bin/jinfo
lrwxrwxrwx 1 root root  32 2010-07-23 16:18 jmap -
/usr/lib/jvm/java-6-sun/bin/jmap
lrwxrwxrwx 1 root root  31 2010-07-23 16:18 jps -
/usr/lib/jvm/java-6-sun/bin/jps
lrwxrwxrwx 1 root root  38 2010-07-23 16:18 jrunscript -
/usr/lib/jvm/java-6-sun/bin/jrunscript
lrwxrwxrwx 1 root root  37 2010-07-23 16:18 jsadebugd -
/usr/lib/jvm/java-6-sun/bin/jsadebugd
lrwxrwxrwx 1 root root  34 2010-07-23 16:18 jstack -
/usr/lib/jvm/java-6-sun/bin/jstack
lrwxrwxrwx 1 root root  33 2010-07-23 16:18 jstat -
/usr/lib/jvm/java-6-sun/bin/jstat
lrwxrwxrwx 1 root root  34 2010-07-23 16:18 jstatd -
/usr/lib/jvm/java-6-sun/bin/jstatd
lrwxrwxrwx 1 root root  40 2010-07-23 16:18 native2ascii -
/usr/lib/jvm/java-6-sun/bin/native2ascii
lrwxrwxrwx 1 root root  39 2010-07-23 16:18 pack200 -
/usr/lib/jvm/java-6-sun/jre/bin/pack200
lrwxrwxrwx 1 root root  42 2010-07-23 16:18 policytool -
/usr/lib/jvm/java-6-sun/jre/bin/policytool
lrwxrwxrwx 1 root root  32 2010-07-23 16:18 rmic -
/usr/lib/jvm/java-6-sun/bin/rmic
lrwxrwxrwx 1 root root  37 2010-07-23 16:18 schemagen -
/usr/lib/jvm/java-6-sun/bin/schemagen
lrwxrwxrwx 1 root root  42 2010-07-23 16:18 servertool -
/usr/lib/jvm/java-6-sun/jre/bin/servertool
lrwxrwxrwx 1 root root  41 2010-07-23 16:18 tnameserv -
/usr/lib/jvm/java-6-sun/jre/bin/tnameserv
lrwxrwxrwx 1 root root  41 2010-07-23 16:18 unpack200 -
/usr/lib/jvm/java-6-sun/jre/bin/unpack200
lrwxrwxrwx 1 root root  33 2010-07-23 16:18 wsgen -
/usr/lib/jvm/java-6-sun/bin/wsgen
lrwxrwxrwx 1 root root  36 2010-07-23 16:18 wsimport -
/usr/lib/jvm/java-6-sun/bin/wsimport
lrwxrwxrwx 1 root root  31 2010-07-23 16:18 xjc -
/usr/lib/jvm/java-6-sun/bin/xjc
==

-- 
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.


Have no fear of perfection;  you'll never reach it. (Salvador Dali)



signature.asc
Description: OpenPGP digital signature


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

2010-08-13 Thread Camaleón
On Fri, 13 Aug 2010 19:33:56 +0200, Merciadri Luca wrote:

 Camaleón wrote:

   
 I think because you installed the package from outside Debian repos and
 so it got not recognized inside the whole package database.

 ***
 ls -l /etc/alternatives | grep java-6-sun 
 ***

 If it's not there, I guess it won't be detected/managed by update-
 alternatives :-?


   
 Hmmm, by creating a symbolic link in the above dir? But maybe not the
 better way, though. I would read man update-alternatives to find out.
   
 It's there:

Sure...? :-P
 
 # ls -l /etc/alternatives | grep java-6-sun 

(...)

 lrwxrwxrwx 1 root root  33 2010-07-23 16:18 javac - 
 /usr/lib/jvm/java-6-sun/bin/javac
 lrwxrwxrwx 1 root root  35 2010-07-23 16:18 javadoc - 
 /usr/lib/jvm/java-6-sun/bin/javadoc
 lrwxrwxrwx 1 root root  33 2010-07-23 16:18 javah - 
 /usr/lib/jvm/java-6-sun/bin/javah
 lrwxrwxrwx 1 root root  33 2010-07-23 16:18 javap - 
 /usr/lib/jvm/java-6-sun/bin/javap
 lrwxrwxrwx 1 root root  40 2010-07-23 16:18 java-rmi.cgi - 
 /usr/lib/jvm/java-6-sun/bin/java-rmi.cgi 
 lrwxrwxrwx 1 root root  39 2010-07-23 16:18 java_vm - 
 /usr/lib/jvm/java-6-sun/jre/bin/java_vm
 lrwxrwxrwx 1 root root  38 2010-07-23 16:18 javaws - 
 /usr/lib/jvm/java-6-sun/jre/bin/javaws 

Let's compare with mine:


stt008:~# update-alternatives --config java

Hay 3 alternativas que proveen `java'.

  Selección Alternativa
---
  1/usr/bin/gij-4.3
 +2/usr/lib/jvm/java-gcj/jre/bin/java
* 3/usr/lib/jvm/java-6-sun/jre/bin/java


So, we are looking for *java* alternatives, right? :-)

And...

s...@stt008:~$ ls -l /etc/alternatives | grep java-6-sun

(...)

lrwxrwxrwx 1 root root  36 nov 15  2009 java - 
/usr/lib/jvm/java-6-sun/jre/bin/java


lrwxrwxrwx 1 root root  46 nov 15  2009 java.1.gz - 
/usr/lib/jvm/java-6-sun/jre/man/man1/java.1.gz
lrwxrwxrwx 1 root root  39 jun 27 12:35 java_vm - 
/usr/lib/jvm/java-6-sun/jre/bin/java_vm
lrwxrwxrwx 1 root root  38 jun 27 12:35 javaws - 
/usr/lib/jvm/java-6-sun/jre/bin/javaws
lrwxrwxrwx 1 root root  48 jun 27 12:35 javaws.1.gz - 
/usr/lib/jvm/java-6-sun/jre/man/man1/javaws.1.gz

I think the java link is the one you are missing.

Greetings,

-- 
Camaleón


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/pan.2010.08.13.17.49...@gmail.com



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

2010-08-13 Thread Jordan Metzmeier
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Java has a separate alternatives command. It is update-java-alternatives.

- -- 
Jordan Metzmeier

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)

iQIcBAEBCAAGBQJMZYY3AAoJEKj/C3qNthmTxM0P/1v9E1i/sU0S8WWHo4zECOHQ
VcGO6itjPwAoNeDzcdC2Tn9UWjSqo4rS7C0k3HAzHQi/UewBqf+KP7yF+eR+GSHT
ZS0tE8KmgQ7Tok8vCvryAP8C5ectnt2r+Gg6KvH1W0Obevz7Be/pLcsOrN+fHtIT
kDNmTea8mOAUM/JYJlpmbh1Cug/uRkCZVItiQNtC05ZvSmoMiZaWJ9bwJzhD1AXB
EjzMh9kA7Xa4PkPKLMnd7SasvJeRoPFhP3jaUnuyYlR/xo1YiJ8QhCe/YUlFB2W6
eTDCr9qxAztg6WB6JooOqn1OLQKYfX+QWz2mv89dDOY0rRkxwhwdjHQ5LQAQj+Q3
l0+N0ykeRsDzA+QdYu65XQooGQJA/Krvy7tOcTarkzNNdJ7oUy+B+bRAz0L3wqHN
iEzBmnYeEryxciG2fIqdn5+S2/CQG7PFwtxCdUWUDgeNNlW+GLM/l+dQQcZpxCUR
H9acHRNf+gDe63ULJifg34+UQQq4AdnIa/L+rPokvrm2UiEyXRwv2AWRYUGEAxIp
u2YKolUfOA+chLoK8T6PaaLR5qTbceGRGodzgcxpuLW5xcmuDA/3+5lg6g2vXUO+
N2/L00CJIwvsCTg6+o3FmIuA6q/GiSSbIPVdCHImW49FUu6ULCZy+JkSKve7dRLG
lQ3/F8/iZrTp7IakoHhy
=etxB
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4c658637.3050...@gmail.com



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

2010-08-13 Thread Merciadri Luca
Well, you're right.

But I've found

==
/usr/lib/jvm/java-6-sun/sun-java6-6-12/jdk1.6.0_12/jre/bin# ls -al
total 756
drwxr-xr-x 2 root root   4096 2009-08-29 23:03 .
drwxr-xr-x 6 root root   4096 2009-08-29 23:03 ..
lrwxrwxrwx 1 root root 10 2009-08-29 23:03 ControlPanel - ./jcontrol
-rwxr-xr-x 1 root root  47308 2009-08-29 23:03 java

-rwxr-xr-x 1 root root  25634 2009-08-29 23:03 java_vm
-rwxr-xr-x 1 root root  83856 2009-08-29 23:03 javaws
-rwxr-xr-x 1 root root   6347 2009-08-29 23:03 jcontrol
-rwxr-xr-x 1 root root  47447 2009-08-29 23:03 keytool
-rwxr-xr-x 1 root root  47679 2009-08-29 23:03 orbd
-rwxr-xr-x 1 root root  47515 2009-08-29 23:03 pack200
-rwxr-xr-x 1 root root  47807 2009-08-29 23:03 policytool
-rwxr-xr-x 1 root root  47447 2009-08-29 23:03 rmid
-rwxr-xr-x 1 root root  47447 2009-08-29 23:03 rmiregistry
-rwxr-xr-x 1 root root  47475 2009-08-29 23:03 servertool
-rwxr-xr-x 1 root root  47679 2009-08-29 23:03 tnameserv
-rwxr-xr-x 1 root root 189274 2009-08-29 23:03 unpack200
==

What do you suggest now?

Camaleón wrote:
 On Fri, 13 Aug 2010 19:33:56 +0200, Merciadri Luca wrote:

   
 Camaleón wrote:
 

   
   
 I think because you installed the package from outside Debian repos and
 so it got not recognized inside the whole package database.

 ***
 ls -l /etc/alternatives | grep java-6-sun 
 ***

 If it's not there, I guess it won't be detected/managed by update-
 alternatives :-?


   
 Hmmm, by creating a symbolic link in the above dir? But maybe not the
 better way, though. I would read man update-alternatives to find out.
   
   
 It's there:
 

 Sure...? :-P
  
   
 # ls -l /etc/alternatives | grep java-6-sun 
 

 (...)

   
 lrwxrwxrwx 1 root root  33 2010-07-23 16:18 javac - 
 /usr/lib/jvm/java-6-sun/bin/javac
 lrwxrwxrwx 1 root root  35 2010-07-23 16:18 javadoc - 
 /usr/lib/jvm/java-6-sun/bin/javadoc
 lrwxrwxrwx 1 root root  33 2010-07-23 16:18 javah - 
 /usr/lib/jvm/java-6-sun/bin/javah
 lrwxrwxrwx 1 root root  33 2010-07-23 16:18 javap - 
 /usr/lib/jvm/java-6-sun/bin/javap
 lrwxrwxrwx 1 root root  40 2010-07-23 16:18 java-rmi.cgi - 
 /usr/lib/jvm/java-6-sun/bin/java-rmi.cgi 
 lrwxrwxrwx 1 root root  39 2010-07-23 16:18 java_vm - 
 /usr/lib/jvm/java-6-sun/jre/bin/java_vm
 lrwxrwxrwx 1 root root  38 2010-07-23 16:18 javaws - 
 /usr/lib/jvm/java-6-sun/jre/bin/javaws 
 

 Let's compare with mine:


 stt008:~# update-alternatives --config java

 Hay 3 alternativas que proveen `java'.

   Selección Alternativa
 ---
   1/usr/bin/gij-4.3
  +2/usr/lib/jvm/java-gcj/jre/bin/java
 * 3/usr/lib/jvm/java-6-sun/jre/bin/java


 So, we are looking for *java* alternatives, right? :-)

 And...

 s...@stt008:~$ ls -l /etc/alternatives | grep java-6-sun

 (...)

 lrwxrwxrwx 1 root root  36 nov 15  2009 java - 
 /usr/lib/jvm/java-6-sun/jre/bin/java
 
 
 lrwxrwxrwx 1 root root  46 nov 15  2009 java.1.gz - 
 /usr/lib/jvm/java-6-sun/jre/man/man1/java.1.gz
 lrwxrwxrwx 1 root root  39 jun 27 12:35 java_vm - 
 /usr/lib/jvm/java-6-sun/jre/bin/java_vm
 lrwxrwxrwx 1 root root  38 jun 27 12:35 javaws - 
 /usr/lib/jvm/java-6-sun/jre/bin/javaws
 lrwxrwxrwx 1 root root  48 jun 27 12:35 javaws.1.gz - 
 /usr/lib/jvm/java-6-sun/jre/man/man1/javaws.1.gz

 I think the java link is the one you are missing.

 Greetings,

   


-- 
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


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

2010-08-13 Thread Merciadri Luca
Jordan Metzmeier wrote:
 Java has a separate alternatives command. It is
 update-java-alternatives.

# update-java-alternatives -l
java-6-sun 63 /usr/lib/jvm/java-6-sun
java-gcj 1042 /usr/lib/jvm/java-gcj


Normal?

-- 
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


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

2010-08-13 Thread Jordan Metzmeier
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

On 08/13/2010 02:42 PM, Merciadri Luca wrote:
 Jordan Metzmeier wrote:
 Java has a separate alternatives command. It is
 update-java-alternatives.

 # update-java-alternatives -l
 java-6-sun 63 /usr/lib/jvm/java-6-sun
 java-gcj 1042 /usr/lib/jvm/java-gcj
 
 
 Normal?
 

Yes, the java alternatives command just groups multiple alternatives
into links into basically three categories (sun, gcj, and openjdk).
Selecting one should update all java-related alternatives to that
implementation.

- -- 
Jordan Metzmeier

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)

iQIcBAEBCAAGBQJMZZX1AAoJEKj/C3qNthmTrf4P+wbPTOqxuqrSaRS6Y6DMDYyE
DJZxyQw2PRmAEXQLY6iKu8TOUU9+zC+dCXZb/FXnfaLQ6ZqxcTj4gmDzVsLB3U7i
FtIpIxKQhmUkih2jOIR0rAD2h7c7If9eVvG1/nEDJ5hBcZdDt9r6ChuCuF65lJaW
CQpJxwCIR8yvAfk5khikbV7UWTvrX3u/nF+c0ZbgXR2H5nvY9NBwnOADurSszwBj
2frG7kfKYhEgXt5XQrsM6cLDZDS0xQAllVxfYsiCwiFC542sPsIQQ2YvXhpmRFx6
Lz/iTdCM2F+kgqiPb5xEQQcww4xneIioM4nuhNmNEd5FhgEjcrgb3iozwpTB7EmV
JEdXBHcD+yHWQcVfIkIwxjmUf4qYrpyK3E6ve92rQoRyFSDWojwwgC0BPSGG+nFC
kl/xvuLsDV1UBgrKyX/fo4DH5qaK+fPRZhkcOMdtwwDoqARQ8SanCZCQq5hyQ36/
LbkIMNTi7k99re+bydv8MAHu4nzm5vhi7zN1RkeKxM+CuPxXTl15bybH4cnfcDZ8
Uy3MmrAhRJ1/D1gy9QCaPQbVn+njmYisGj0tLQvHgn8XbV+va3R+3oQC2PZ2GLRb
L2V0e51o0/2Vf0jGj5LwMcFsEpHtRm84CmU7E8fdVQ7etHu5T4rsT1c62iqNgD5b
fR1NBTdvwvruC44wYnE8
=nSAs
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4c6595f6.6070...@gmail.com



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

2010-08-13 Thread Camaleón
On Fri, 13 Aug 2010 20:41:14 +0200, Merciadri Luca wrote:

 Well, you're right.
 
 But I've found
 
 ==
 /usr/lib/jvm/java-6-sun/sun-java6-6-12/jdk1.6.0_12/jre/bin# ls -al 
 total 756
 drwxr-xr-x 2 root root   4096 2009-08-29 23:03 . 
 drwxr-xr-x 6 root root   4096 2009-08-29 23:03 .. 
 lrwxrwxrwx 1 root root 10 2009-08-29 23:03 ControlPanel - ./jcontrol 
 -rwxr-xr-x 1 root root  47308 2009-08-29 23:03 java 
  

(...)

Sure, Sun's java bin is in your system and you can launch any java 
application by calling the full path (/usr/lib/jvm/java-6-sun/sun-
java6-6-12/jdk1.6.0_12/jre/bin/java -jar ...) , is just that update-
alternatives cannot auto-link for java -jar ... to your current Sun 
binary, which was installed from outside.

 What do you suggest now?

If you are asking how to force update-alternatives to detect the
installed Sun's Java binary, dunno.

No information about this in the man page? :-?

Greetings,

-- 
Camaleón


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/pan.2010.08.13.19.08...@gmail.com



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

2010-08-13 Thread Merciadri Luca
Camaleón wrote:
 On Fri, 13 Aug 2010 20:41:14 +0200, Merciadri Luca wrote:

   
 Well, you're right.

 But I've found

 ==
 /usr/lib/jvm/java-6-sun/sun-java6-6-12/jdk1.6.0_12/jre/bin# ls -al 
 total 756
 drwxr-xr-x 2 root root   4096 2009-08-29 23:03 . 
 drwxr-xr-x 6 root root   4096 2009-08-29 23:03 .. 
 lrwxrwxrwx 1 root root 10 2009-08-29 23:03 ControlPanel - ./jcontrol 
 -rwxr-xr-x 1 root root  47308 2009-08-29 23:03 java 
  
 

 (...)

 Sure, Sun's java bin is in your system and you can launch any java 
 application by calling the full path (/usr/lib/jvm/java-6-sun/sun-
 java6-6-12/jdk1.6.0_12/jre/bin/java -jar ...) , is just that update-
 alternatives cannot auto-link for java -jar ... to your current Sun 
 binary, which was installed from outside.
   
But the main problem is that it (it = Sun's java) is not used by
default. Well, I could symlink or edit .bashrc so that it will work with
many java calls, but not all. For example, Eclipse (I don't like
GUIs/IDEs, but I need for some special things) allows me to configure
another JVM, but it looks like it does not use it, even after having
choosen it. (I'm getting many strange exceptions from Google's SDK.)
 What do you suggest now?
 

 If you are asking how to force update-alternatives to detect the
 installed Sun's Java binary, dunno.

 No information about this in the man page? :-?
   
To detect, I did not find anything. But to set manually a new one, it is
possible, but I can't understand the link between
update-java-alternatives and update-alternatives. One must be more
prioritary than another, and the most prioritary one needs to be set to
Sun's one.

-- 
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.


Every cloud has a silver lining.



signature.asc
Description: OpenPGP digital signature


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

2010-08-13 Thread Camaleón
On Fri, 13 Aug 2010 21:26:53 +0200, Merciadri Luca wrote:

 Camaleón wrote:

(...)

 No information about this in the man page? :-?
   
 To detect, I did not find anything. But to set manually a new one, it is
 possible, but I can't understand the link between
 update-java-alternatives and update-alternatives. One must be more
 prioritary than another, and the most prioritary one needs to be set to
 Sun's one.

By reading this manual:

***
http://www.debian.org/doc/FAQ/ch-customizing.en.html

(section 11.10)

If a package doesn't register itself as a window manager for some reason 
(file a bug if it's in error), or if you use a window manager from /usr/
local directory, the selections on screen won't contain your preferred 
entry. You can update the link through command line options, like this:

update-alternatives --install /usr/bin/x-window-manager x-window-manager 
/usr/local/bin/wmaker-cvs 50

The first argument to `--install' option is the symlink that points to /
etc/alternatives/NAME, where NAME is the second argument. The third 
argument is the program to which /etc/alternatives/NAME should point to, 
and the fourth argument is the priority (larger value means the 
alternative will more probably get picked automatically). 
***

I would try (disclaimer: not tested, proceed at your own risk :-P) 
something like:

***
update-alternatives --install /usr/bin/java java 
/usr/lib/jvm/java-6-sun/sun-java6-6-12/jdk1.6.0_12/jre/bin/java 1
***

Greetings,

-- 
Camaleón


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/pan.2010.08.13.20.49...@gmail.com



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

2010-08-13 Thread Merciadri Luca
Merciadri Luca wrote:
 1) My question was about the difference between

 ==
 # update-alternatives --config java
 There are 2 alternatives which provide `java'.

 Selection Alternative
 ---
 1 /usr/bin/gij-4.3
 *+ 2 /usr/lib/jvm/java-gcj/jre/bin/java
 ==

 and

 ==
 # update-java-alternatives -l
  java-6-sun 63 /usr/lib/jvm/java-6-sun
  java-gcj 1042 /usr/lib/jvm/java-gcj
 ==

 2) The problem is that my Sun install is under
 /usr/lib/jvm/java-6-sun/sun-java6-6-12/jdk1.6.0_12 (which contains bin/,
 lib/, jre/, etc.). Consequently, update-java-alternatives is wrong:
 java-6-sun only contains a folder: sun-java6-6-12, which contains
 jdk1.6.0_12. This is confirmed by

 ==
 # update-java-alternatives -s java-6-sun
 No alternatives for firefox-3.0-javaplugin.so.
 No alternatives for firefox-javaplugin.so.
 No alternatives for iceape-javaplugin.so.
 No alternatives for iceweasel-javaplugin.so.
 No alternatives for midbrowser-javaplugin.so.
 No alternatives for mozilla-javaplugin.so.
 No alternatives for xulrunner-1.9-javaplugin.so.
 No alternatives for xulrunner-javaplugin.so.
 update-java-alternatives: jdk alternative does not exist:
 /usr/lib/jvm/java-6-sun/bin/appletviewer
 update-java-alternatives: jdk alternative does not exist:
 /usr/lib/jvm/java-6-sun/bin/apt
 update-java-alternatives: jdk alternative does not exist:
 /usr/lib/jvm/java-6-sun/bin/extcheck
 update-java-alternatives: jdk alternative does not exist:
 /usr/lib/jvm/java-6-sun/bin/HtmlConverter
 update-java-alternatives: jdk alternative does not exist:
 /usr/lib/jvm/java-6-sun/bin/idlj
 update-java-alternatives: jdk alternative does not exist:
 /usr/lib/jvm/java-6-sun/bin/jarsigner
 update-java-alternatives: jdk alternative does not exist:
 /usr/lib/jvm/java-6-sun/bin/jar
 update-java-alternatives: jdk alternative does not exist:
 /usr/lib/jvm/java-6-sun/bin/javac
 update-java-alternatives: jdk alternative does not exist:
 /usr/lib/jvm/java-6-sun/bin/javadoc
 update-java-alternatives: jdk alternative does not exist:
 /usr/lib/jvm/java-6-sun/bin/javah
 update-java-alternatives: jdk alternative does not exist:
 /usr/lib/jvm/java-6-sun/bin/javap
 update-java-alternatives: jdk alternative does not exist:
 /usr/lib/jvm/java-6-sun/bin/java-rmi.cgi
 update-java-alternatives: jdk alternative does not exist:
 /usr/lib/jvm/java-6-sun/bin/jconsole
 update-java-alternatives: jdk alternative does not exist:
 /usr/lib/jvm/java-6-sun/bin/jdb
 update-java-alternatives: jdk alternative does not exist:
 /usr/lib/jvm/java-6-sun/bin/jhat
 update-java-alternatives: jdk alternative does not exist:
 /usr/lib/jvm/java-6-sun/bin/jinfo
 update-java-alternatives: jdk alternative does not exist:
 /usr/lib/jvm/java-6-sun/bin/jmap
 update-java-alternatives: jdk alternative does not exist:
 /usr/lib/jvm/java-6-sun/bin/jps
 update-java-alternatives: jdk alternative does not exist:
 /usr/lib/jvm/java-6-sun/bin/jrunscript
 update-java-alternatives: jdk alternative does not exist:
 /usr/lib/jvm/java-6-sun/bin/jsadebugd
 update-java-alternatives: jdk alternative does not exist:
 /usr/lib/jvm/java-6-sun/bin/jstack
 update-java-alternatives: jdk alternative does not exist:
 /usr/lib/jvm/java-6-sun/bin/jstatd
 update-java-alternatives: jdk alternative does not exist:
 /usr/lib/jvm/java-6-sun/bin/jstat
 update-java-alternatives: jdk alternative does not exist:
 /usr/lib/jvm/java-6-sun/bin/native2ascii
 update-java-alternatives: jdk alternative does not exist:
 /usr/lib/jvm/java-6-sun/bin/rmic
 update-java-alternatives: jdk alternative does not exist:
 /usr/lib/jvm/java-6-sun/bin/schemagen
 update-java-alternatives: jdk alternative does not exist:
 /usr/lib/jvm/java-6-sun/bin/serialver
 update-java-alternatives: jdk alternative does not exist:
 /usr/lib/jvm/java-6-sun/bin/wsgen
 update-java-alternatives: jdk alternative does not exist:
 /usr/lib/jvm/java-6-sun/bin/wsimport
 update-java-alternatives: jdk alternative does not exist:
 /usr/lib/jvm/java-6-sun/bin/xjc
 No alternatives for ControlPanel.
 update-alternatives: Cannot find alternative
 `/usr/lib/jvm/java-6-sun/jre/bin/java'.

 No alternatives for java_vm.
 No alternatives for javaws.
 No alternatives for jcontrol.
 No alternatives for jexec.
 update-alternatives: Cannot find alternative
 `/usr/lib/jvm/java-6-sun/jre/bin/keytool'.

 update-alternatives: Cannot find alternative
 `/usr/lib/jvm/java-6-sun/jre/bin/orbd'.

 No alternatives for pack200.
 No alternatives for policytool.
 update-alternatives: Cannot find alternative
 `/usr/lib/jvm/java-6-sun/jre/bin/rmid'.

 update-alternatives: Cannot find alternative
 `/usr/lib/jvm/java-6-sun/jre/bin/rmiregistry'.

 No alternatives for servertool.
 update-alternatives: Cannot find alternative
 `/usr/lib/jvm/java-6-sun/jre/bin/tnameserv'.

 No alternatives for unpack200.
 update-java-alternatives: plugin alternative does not exist:
 /usr/lib/jvm/java-6-sun/jre/lib/i386/libnpjp2.so
 update-java-alternatives: plugin alternative does not exist:

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

2010-08-13 Thread Merciadri Luca
Camaleón wrote:
 On Fri, 13 Aug 2010 21:26:53 +0200, Merciadri Luca wrote:

   

 (...)

   

 By reading this manual:

 ***
 http://www.debian.org/doc/FAQ/ch-customizing.en.html

 (section 11.10)

 If a package doesn't register itself as a window manager for some reason 
 (file a bug if it's in error), or if you use a window manager from /usr/
 local directory, the selections on screen won't contain your preferred 
 entry. You can update the link through command line options, like this:

 update-alternatives --install /usr/bin/x-window-manager x-window-manager 
 /usr/local/bin/wmaker-cvs 50

 The first argument to `--install' option is the symlink that points to /
 etc/alternatives/NAME, where NAME is the second argument. The third 
 argument is the program to which /etc/alternatives/NAME should point to, 
 and the fourth argument is the priority (larger value means the 
 alternative will more probably get picked automatically). 
 ***

 I would try (disclaimer: not tested, proceed at your own risk :-P) 
 something like:

 ***
 update-alternatives --install /usr/bin/java java 
 /usr/lib/jvm/java-6-sun/sun-java6-6-12/jdk1.6.0_12/jre/bin/java 1
 ***
   
Thanks for this. And about java-update-alternatives? Is one more
prioritary than another? (See my last message, which was apparently not
sent.)

-- 
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.


Give a man a fish and you feed him for a day; teach a man to fish and
you feed him for a lifetime.



signature.asc
Description: OpenPGP digital signature


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

2010-08-13 Thread Camaleón
On Fri, 13 Aug 2010 22:57:11 +0200, Merciadri Luca wrote:

 Camaleón wrote:

(...)

 ***
 update-alternatives --install /usr/bin/java java
 /usr/lib/jvm/java-6-sun/sun-java6-6-12/jdk1.6.0_12/jre/bin/java 1 ***
   
 Thanks for this. And about java-update-alternatives? Is one more
 prioritary than another? (See my last message, which was apparently not
 sent.)

True is that I was totally unaware about the availability of the command  
Jordan suggested, so I am as lost as you here O:-)

Greetings,

-- 
Camaleón


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/pan.2010.08.13.21.15...@gmail.com