My java 1.5.0 & javac is 1.6.0_24, does this mean that my Java installation is inconsistent?

I click on Debian. My java is 1.5.0 and javac is 1.6.0_24, does this mean that my Java installation is inconsistent? What is the last package I should have?

+3
source share
3 answers

Checkout alternatives

It seems your different java programs point to different executables. Debian uses link redirection for programs for which alternative implementations exist, such as java with gcj, kaffe, sun-java5 and sun-java6, openjdk, ...

In the past, you had to exchange them individually with the alternative update program .

, - : update-java-alternatives. java-commons. .

sudo update-java-alternatives -l

, java

sudo update-java-alternatives -s java-6-openjdk

Java , openjdk.

, gui, . Ubuntu ( debian) System → Administration → Alternatives Configurator.

+3

, 2 JDK?

, " Java 1.5.0"? , 1.5.0 JRE 1.6.0_24 JDK?

+1

Yes, this and your version of JRE should be> = JDK to avoid any inconsistencies.

+1
source

All Articles