Solve Java 1.5 Installation Issue on Ubuntu Linux

  • Context: Java 
  • Thread starter Thread starter Tony11235
  • Start date Start date
  • Tags Tags
    Java
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 3K views
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?
 
Physics news on Phys.org
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