Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / January 2007

Tip: Looking for answers? Try searching our database.

CLASSPATH help using classes and jar files.

Thread view: 
snoopy_@excite.com - 16 Jan 2007 18:33 GMT
I am new to java, what is the correct way to define CLASSPATH for the
files like test.class or test.jar.   In unix if I want to provide a
PATH to an executable like /userfiles/test.exe I would do the
following:

PATH=/userfiles

This provides a directory to search for.

In JAVA, I thought it was the same, but in some instances on our system
I see it point to the exact class file.  For example:

CLASSPATH=/userfiles/test.class

Shouldn't it be CLASSPATH=/userfiles  ?

The same for JAR files.  Should it be CLASSPATH=/userfiles, or
CLASSPATH=/userfiles/test.jar

Thanks.
RedGrittyBrick - 16 Jan 2007 19:08 GMT
> I am new to java, what is the correct way to define CLASSPATH for the
> files like test.class or test.jar.   In unix if I want to provide a
[quoted text clipped - 14 lines]
> The same for JAR files.  Should it be CLASSPATH=/userfiles, or
> CLASSPATH=/userfiles/test.jar

See http://mindprod.com/jgloss/classpath.html


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.