Thread: Linux Install
View Single Post
  #9 (permalink)  
Old July 8th, 2001
gbildson gbildson is offline
Gnutella Muse
 
Join Date: February 18th, 2001
Posts: 207
gbildson is flying high
Default

If you want to ensure that any version of a command is accessed from the command line then you make sure that the path to it occurs first in your PATH environment variable.

You have some kind of .profile (.bash_profile, .login, .kshrc, or whatever) in your login directory where you could specify this. You may need to set JAVA_HOME as well. i.e.
JAVA_HOME=/usr/local/jre1.3.1
PATH=$JAVA_HOME/bin:$PATH
export PATH JAVA_HOME
This depends on what shell you are using - likely bash (man bash)

-greg
Reply With Quote