Changing jdk order

Matthias Klose doko at ubuntu.com
Thu Apr 16 15:08:47 PDT 2009


please use an Ubuntu developers forum or the Ubuntu mailing lists for such
questions.

LCID Fire schrieb:
> On my Ubuntu system I have both the openjdk and sunjdk installed.
> Trying to generate jni header files in ant screws up totally when
> openjdk is installed (see
> http://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/361578). Problem
> is to compile the java stuff I need some classes that come with openjdk.
> Currently it seems like the system uses openjdk before sunjdk - is there
> a way to switch/change the orders of the jdks?

see update-java-alternatives(8), or make sure to use the correct JAVA_HOME.

  Matthias



More information about the jdk6-dev mailing list