Trying to get sun java installed and working, while leaving the openjdks installed.
If I type a sudo update-alternatives --config java I get this:
There are 3 choices for the alternative java (providing /usr/bin/java).
Selection Path Priority Status
------------------------------------------------------------
0 /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java 1071 auto mode
* 1 /opt/java/64/jdk1.6.0_37/bin/java 1 manual mode
2 /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java 1061 manual mode
3 /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java 1071 manual mode
Press enter to keep the current choice[*], or type selection number:
Looks good. But if I type sudo update-alternatives --config jar I get this:
There are 3 choices for the alternative jar (providing /usr/bin/jar).
Selection Path Priority Status
------------------------------------------------------------
* 0 /usr/lib/jvm/java-7-openjdk-amd64/bin/jar 1071 auto mode
1 /usr/bin/fastjar 100 manual mode
2 /usr/lib/jvm/java-6-openjdk-amd64/bin/jar 1061 manual mode
3 /usr/lib/jvm/java-7-openjdk-amd64/bin/jar 1071 manual mode
Press enter to keep the current choice[*], or type selection number:
And when I try and compile I get this error:
make: *** [out/target/common/obj/JAVA_LIBRARIES/android_stubs_current_intermediates/classes.jar] Error 41
I assume it is an error with the jar setup but not sure how to fix it. Java wizards help

