can i switch using "alternatives" my java in one fell swoop?

Markus Schönhaber ubuntu-users at list-post.mks-mail.de
Mon Dec 6 17:02:12 UTC 2010


06.12.2010 09:23, Robert P. J. Day:

>   if i install both sun's java and openjdk, is there a script or
> recipe i can use to switch *all* of the java-related commands from one
> package to the other?
> 
>   if i run
> 
> $ sudo update-alternatives --config java
> 
> that will let me switch (using symlinks) only which "java" is being
> used, but it does nothing about all the *other* java-related commands
> (javac, javadoc, jps, etc, etc.)
> 
>   is it simply a case of having to manually make all those changes?

sudo update-java-alternatives

-- 
Regards
  mks




More information about the ubuntu-users mailing list