LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-24-2006, 06:16 PM   #1
markw8500
Member
 
Registered: Jul 2005
Posts: 104

Rep: Reputation: 15
How to switch java versions...


I have both java1.4.2 and java1.50_08 installed and I need to change my javac from 1.4.2 to 1.50_08... but I cant seem to be able to figure it out... I tried update-alternatives --config javac and update-alternatives --config java... but it can only find the 1.4.2...

Anybody have any suggestions???
 
Old 09-24-2006, 06:20 PM   #2
scoban
Member
 
Registered: Nov 2004
Location: Turkey
Distribution: Slackware
Posts: 145

Rep: Reputation: 16
Try to put java 1.5 path in front of java 1.4 path in your PATH environment variable.

Code:
 export PATH=/path/to/jdk1.5/bin:$PATH
 
Old 09-24-2006, 06:51 PM   #3
markw8500
Member
 
Registered: Jul 2005
Posts: 104

Original Poster
Rep: Reputation: 15
I tried that... but it did not work...
 
Old 09-24-2006, 06:54 PM   #4
markw8500
Member
 
Registered: Jul 2005
Posts: 104

Original Poster
Rep: Reputation: 15
Never Mind... I figured it out... I was missing alot of updates... Check out http://ccl.net/cca/software/SOURCES/...1.5/index.html for all of the details...

Thanks anyway...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
gcc versions compatibility with kernel versions.. mahesh_manthapuri SUSE / openSUSE 1 03-22-2006 12:28 AM
Using two versions of Java UmneyDurak Linux - Software 1 10-02-2005 12:32 AM
Can two versions of Java JRE run at the same time? White Spiral SUSE / openSUSE 4 04-24-2005 01:24 PM
set up DSL thru SWITCH - winXp connected to SWITCH too husz Linux - Newbie 5 04-22-2004 12:08 AM
Multiple JAVA Versions / DB2 8.1 / SUSE 8.2 byfaithalone Linux - Newbie 1 10-15-2003 02:35 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration