Solve Java 1.5 Installation Issue on Ubuntu Linux

  • Topic: Java 
  • Thread starter Tony11235
  • Start date
  • Tags Tags
    Java
1 reply · 3K views · last reply
Tony11235
Messages
254
Reaction score
0
I'm on ubuntu linux. I've installed java 1.5 but at the command line, when I type java -verion I get 1.4. So then I type: export PATH="/usr/lib/jdk1.5.0_06/bin/:$PATH". I type java -version and get 1.5, but then when i close the command prompt and open a new one, it's back to java 1.4. Any help on what i need to do to make it permanent?
 
Do you need two versions of java installed? Why don't you uninstall java 1.4?

If you want both versions you can put that export line in your .bash_profile