Using "-classpath" in javac

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • joecch
    New Member
    • May 2007
    • 5

    Using "-classpath" in javac

    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_HOM E/lib/*jar abc.java
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    Originally posted by joecch
    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_HOM E/lib/*jar abc.java
    No you can't do that but you can play tricks with your shell to do the globbing if
    you like.

    kind regards,

    Jos

    Comment

    Working...