Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Whole directory into CLASSPATH

Status
Not open for further replies.

cadbilbao

Programmer
Apr 9, 2001
233
ES
Hi!

I've got a lot of .jar files inside the same directory/folder, and I would like to include them all into CLASSPATH, but without typing /foo/foo/file1.jar;foo/foo/file2.jar...

Is there a shorter way?
 
I think you can just put the directory on the CLASSPATH and it will pick up all the jars. I am not sure about this though. Anyone want to confirm or deny this? Wushutwist
 
Well, as far as I know you have to add each jar-file to classpath separately. Unfortunately.
 
Vepo may be right. I honestly don't know, I always add each individual jar. Wushutwist
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top