Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to define jars in classpath

 
Raymond Lim2
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I have a folder that has multiple .jar files inside
Is it possible to set the classpath with one declaration i.e.
set classpath=c:\jar\*.*;
instead of:
set classpath=c:\jar\jar1.jar; c:\jar\jar2.jar;etc...
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, but with any Java 2 system, you can put any jars you like in the lib/ext directory of your JRE and they will automatically be picked up as if ther are in the classpath. This is how I load most of my jars.
 
Raymond Lim2
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks much -- Sherrif Carver
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic