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

Using "-classpath" in javac

 
Joe Cheung
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I have many jar files used to compile my java application, can I use wildcard (the example is shown below) in order to eliminating the full paths for each jar files that make the command clumsy?

javac -classpath $THIRDPARTY_HOME/lib/*jar abc.java
 
Joanne Neal
Rancher
Posts: 3742
16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What happened when you tried it ?
 
Tim Myer
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Take a look at this link for JSE6:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6268383
It details the use of wildcards in the java commandline tools that accept the classpath parameter.
------Tim---------
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic