Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to define jars in classpath  RSS feed

 
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!