jjunos
July 13th, 2009, 05:42 PM
Hello all,
I was wondering if there's a way to add a java version to update-java-alternatives.
I currently need both java 1.4.2 and Java 6 for two seperate projects, but flipping between the two is a hassle. I've set it up in my bashrc at the moment, but i know that:
/usr/bin/java -> etc/alternatives/java -> my java home
What i'd like is to (from reading online in a few places) do a
sudo update-java-alternative -s <javaversion>
when i need java 1.4.2, or java 6. But whe ni do a
sudo update-java-alternative -l
I can only see my java 1.6. I manually installed the java 1.4.2 (since it's not in the repo). Idea's on how to add it to update-java-alternatives?
Thanks,
JJunos
I was wondering if there's a way to add a java version to update-java-alternatives.
I currently need both java 1.4.2 and Java 6 for two seperate projects, but flipping between the two is a hassle. I've set it up in my bashrc at the moment, but i know that:
/usr/bin/java -> etc/alternatives/java -> my java home
What i'd like is to (from reading online in a few places) do a
sudo update-java-alternative -s <javaversion>
when i need java 1.4.2, or java 6. But whe ni do a
sudo update-java-alternative -l
I can only see my java 1.6. I manually installed the java 1.4.2 (since it's not in the repo). Idea's on how to add it to update-java-alternatives?
Thanks,
JJunos