Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 02-28-2001, 04:42 PM   #1
Registered: Feb 2001
Location: Boston, USA
Distribution: Slackware
Posts: 438

Rep: Reputation: 30

Is there a classpath variable in linux, as there is on Windows? I recently installed the jdk1.3 from sun, and I thought I did it successfully, but when I type java -version at the command prompt it says I'm using java 1.1 instead.Any help would be appreciated
Old 02-28-2001, 09:25 PM   #2
Senior Member
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,823

Rep: Reputation: 120Reputation: 120

It's not really the classpath that is the problem, it's your regular PATH variable. The new version of java that you installed is either not in your PATH or it is deeper in your PATH than the 1.1 version of java. I would suggest that you do a find from root, and look for both programs called java.

find / -name java -print

If two java programs show up, then run each with a absolute path from root and see which is the version you want. Delete the other and modify you PATH if necessary. If only one java shows up, then reinstall java.

Hope this helps



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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to set the CLASSPATH environment variable Rodotheos Programming 3 06-20-2005 05:30 AM
Setting up my java classpath in redhat working2hard Programming 9 07-28-2004 11:15 AM
setting java classpath... brutal_brad Linux - Newbie 7 09-21-2003 03:52 PM
How to set classpath for java jolly Linux - Software 3 04-22-2003 11:02 PM
setting CLASSPATH variable gabadoo Linux - Newbie 7 01-21-2002 05:24 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:34 AM.

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