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



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

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




Attachment: signature.asc
Description: OpenPGP digital signature