Java Solve Java 1.5 Installation Issue on Ubuntu Linux

  • Thread starter Thread starter Tony11235
  • Start date Start date
  • Tags Tags
    Java
AI Thread Summary
To set Java 1.5 as the default version on Ubuntu Linux, the user initially encounters an issue where the command line defaults to Java 1.4. After updating the PATH variable with "export PATH="/usr/lib/jdk1.5.0_06/bin/:$PATH"", the user successfully switches to Java 1.5, but the change is not permanent upon reopening the terminal. To make the change permanent, it is suggested to add the export line to the .bash_profile file. The discussion also raises questions about the necessity of having two versions of Java installed and the possibility of uninstalling Java 1.4, although the focus remains on configuring the environment for Java 1.5.
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?
 
Technology 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
 
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
I had a Microsoft Technical interview this past Friday, the question I was asked was this : How do you find the middle value for a dataset that is too big to fit in RAM? I was not able to figure this out during the interview, but I have been look in this all weekend and I read something online that said it can be done at O(N) using something called the counting sort histogram algorithm ( I did not learn that in my advanced data structures and algorithms class). I have watched some youtube...

Similar threads

Replies
2
Views
2K
Replies
9
Views
3K
Replies
12
Views
11K
Replies
4
Views
5K
Replies
25
Views
3K
Replies
1
Views
2K
Replies
2
Views
779
Replies
3
Views
3K
Replies
4
Views
19K
Back
Top