You can have any number of Java versions and types installed. I personally keep version 1.3, 1.4, and the latest 5.0 around.
Basically, it comes down to your JAVA_HOME environment variable, and where the java and javac binaries are pointing.
To get a feel for how your system is setup now, try (at the command line):
Code:
echo $JAVA_HOME
which java
which javac
Let's say that JAVA_HOME points to the Blackdown JVM (which is likely), you can simple edit .bashrc (in your home directory) and make JAVA_HOME point to where you want.
The other possibility is that java / javac is a link to the Blackdown JVM. You can tell this if the above "which" commands display something like:
Code:
javac -> /usr/share/blackdown/bin/javac
In this case, you can make a new link to the Java version you want, and maybe a different name for the Blackdown JVM:
Code:
ln -s /usr/share/java/jdk1.4.2/bin/javac /usr/local/bin/javac
ln -s /usr/share/blackdown/bin/javac /usr/local/bin/javac-blackdown
I hope you get the general idea here, basically you either reset your JAVA_HOME variable, or change which java binaries are called. Let me know if you need more help.