I am on Debian Squeeze. My java is 1.5.0 & javac is 1.6.0_24, does it mean that my Java installation is inconsistent? what is the latest package I should be having?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Checkout alternatives
It seems your different java programs are pointing to different executables. Debian uses a redirect with links for program for which alternative implementations exists, like java with the gcj, kaffe, sun-java5 and sun-java6, openjdk, …
In the past you had to swap them all individually with the update-alternatives program.
I recollect there was something to do it all at once now : update-java-alternatives. It is aprt of the java-commons package. see also this post
shows you which java versions are installed
would set all java related programs to point to the openjdk version.
Typically there is a gui tool to help you do this. On my Ubuntu (also debian based) system it System –> Administration –> Alternatives Configurator.