• Post Reply Bookmark Topic Watch Topic
  • New Topic

CLASSPATH setup  RSS feed

 
Lawk Salih
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I am looking for a web site that provides the CLASSPATH setup instructions in details. I tried googling but unsuccessful. If you have or know of a link, please share it.
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First, are you certain that you need to set a classpath? A lot of people think they need to do this, but don't have any reason to.

See Setting the Classpath. But carefully consider the following...
Using the -classpath option is preferred over setting CLASSPATH environment variable because you can set it individually for each application without affecting other applications and without other applications modifying its value.

If you must set a CLASSPATH environment variable, then be sure to include a dot (.) for the current directory.

If you're still having problems with this, tell us what operating system you're using.
[ February 11, 2008: Message edited by: marc weber ]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!