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

Robert P. J. Day rpjday at crashcourse.ca
Mon Dec 6 08:23:26 UTC 2010


  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?

rday

-- 

========================================================================
Robert P. J. Day                               Waterloo, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================




More information about the ubuntu-users mailing list