How to wildcard include JAR files when compiling?

your command line is correct, but there are some considerations:

  • you must have javac >= 1.6, because only in that version the compiler parses the “*” as various JAR files.
  • you must be running Windows, because “;” is the path separator for that operating system only (it doesn’t work on Unix, the path separator on Unix is “:”).

I’m assuming that the JAR file has the proper directory structure as you stated.

Leave a Comment