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