LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   ClASSPATH variable for Java (https://www.linuxquestions.org/questions/linux-general-1/classpath-variable-for-java-1088/)

oulevon 02-28-2001 03:42 PM

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

crabboy 02-28-2001 08:25 PM

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

Gary


All times are GMT -5. The time now is 07:28 PM.