CLASSPATH for Java?

untz

Registered
Hello,

(1) I am using the Java 2 SDK 1.4.2_05, where can I set the CLASSPATH, JAVA_HOME, and CATALINA_HOME system environmental variables?

(2) How do I know what type of Shell I am using, and what's the name of the file that needs to includes the system environmental variables from question 1 (I know that the varies from Shell to Shell, e.g. .bash_profile is for /bash shell, and .tcshrc is for the other one)...

With thanks,
 
If you want those variables to be set when you open the Terminal, edit (or create) the file called .profile in your home directory. If you want the changes to be permanent, edit the file /etc/profile. Note that you need to sudo or be root to edit this file.

To determine what shell you're using, in Terminal type "echo $SHELL" without the quotes.
 
Back
Top