Originally posted by Dirk Trompetter: Hi, how can i set the java classpath on linux? thanks, dirk
under linux, if you install jdk under /usr/jdk1.3, then export /usr/jdk1.3 to system variable PATH to enable java, javac to run. For classpath, export those package your are going to use to system variable CLASSPATH will be enough. In most of the case, it is good to include . and .. in the CLASSPATH, this is to notice the JRE to find in the current directory and its parent directory.
I'm not sure what shell you run, but I set my CLASSPATH variable in the .bashrc in my home directory. Handy also to set JAVA_HOME here. Take a look, there should be other examples in there aswell. Cheers.