
Developing First Java Application 2.15
In sh enter; CLASSPATH = path1:path2:... export CLASSPATH
To clear classpath already set from the previous commands
In csh: unsetenv CLASSPATH
In sh : unset CLASSPATH
To check if classpath is set correctly on Linux, execute the
following:
% echo $CLASSPATH
If CLASSPATH is not set you will get a
CLASSPATH: Undefined variable error
Changing Startup Settings:
If the class path is set at system startup then we should:
For shells csh , tcsh look for setenv command in .cshrc file
(~/.cshrc): and enter
% setenv CLASSPATH classpath1:classpath2...
For shells sh , ksh look into .profile export ...