Computing.Net > Forums > Programming > Java CLASSPATH

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Java CLASSPATH

Reply to Message Icon

Name: Alexander
Date: March 9, 2002 at 05:53:16 Pacific
Comment:

Hi all :-)
Can someone PLEASE tell me how do I set my CLASSPATH and anything else I need to do. I have installed c:\jdk1.3.1_01 and I need also to included UserDialog.class to my programs. But I only used long ago the University system, not on my own PC. Can someone please help me set eveything up. Thank you very much! :-))
Alexander :-)



Sponsored Link
Ads by Google

Response Number 1
Name: Guy
Date: March 9, 2002 at 14:10:31 Pacific
Reply:

Hi - If you really have the SDK installed correctly .... then ...

1) You should have a JAVA_HOME environment variable that points to the install directory.

2) Your PATH environment variable should contain %JAVA_HOME%\bin.

3) Your CLASSPATH environment variable
depends (don't ask me why, I do not know) on the Java release and OS. To run a HelloWorld program from the current directory, some times no CLASSSPATH is required at all. Other times the current working directory must be included in CLASSPATH. For example:

java -classpath . HelloWorld

or alternatively:

set CLASSPATH=.
java HelloWorld

HTH, Guy


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Java CLASSPATH

specifying a java classpath www.computing.net/answers/programming/specifying-a-java-classpath/15270.html

java classpath problem? www.computing.net/answers/programming/java-classpath-problem/10043.html

How to set java classpath in vista www.computing.net/answers/programming/how-to-set-java-classpath-in-vista/15739.html