Click to See Complete Forum and Search --> : setting classpaths???


Danster
02-02-2001, 12:40 PM
I've installed java 1.3 in /usr/java/jdk1.3 but I don't know how to set the classpath for the interpreter??
:confused:

for example I'm also trying to install tomcat which says: http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/uguide/tomcat_ug.html
Set the environment variable JAVA_HOME to point to the root directory of your JDK hierarchy, then add the Java interpreter to your PATH environment variable.

is this what they mean:
JAVA_HOME=/usr/java/jdk1.3; export JAVA_HOME
but where is the interpreter and how do I set the PATH?

X_console
02-02-2001, 12:43 PM
The interpreter would most likely be in $JAVA_HOME/bin

As for setting classpath: export CLASSPATH=.

Danster
02-02-2001, 01:00 PM
Does this make sense?
[root@sloppy bin]# JAVA_HOME=/usr/java/jdk1.3; export JAVA_HOME
[root@sloppy bin]# export CLASSPATH=/usr/java/jdk1.3/bin
[root@sloppy bin]# ls /usr/java/jdk1.3/bin
ControlPanel extcheck jar java-rmi.cgi javah keytool oldjavac realpath rmiregistry
appletviewer i386 jarsigner javac javap native2ascii oldjdb rmic serialver
awt_robot idlj java javadoc jdb oldjava policytool rmid tnameserv

I don't think this worked 'cause:
# ant
Unable to initialize threads: cannot find class java/lang/Thread

any easy way to check if the path is working