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

Robert P. J. Day rpjday at crashcourse.ca
Mon Dec 6 17:14:21 UTC 2010


On Mon, 6 Dec 2010, Markus Schönhaber wrote:

> 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

  thanks, i figured it was something that simple.

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