|
Java™ by example!
|
|
|
How do I set the CLASSPATH?
The classpath is an environment variable Java uses to work out where to look for .class and .jar files. You have to set it to wherever you keep your class files so it knows where to find them. For example if you're keeping them in c:\java\myapp you'd set the classpath using something like:
Win:
 SET CLASSPATH=C:\java\myapp\
|
Unix:
 CLASSPATH=//java/myapp/ export CLASSPATH
|
Further Information
Author of answer: Edgecrusher
Comments to this answer are only viewable by members. Login or become a member!
|
|
|
|
|