djangofan djangofan - 1 year ago 75
Java Question

Why aren't wildcarded classpaths working for me?

Im using JDK I'm trying to include a classpath like so:

-cp .;Server.jar;Util.jar;../jars/**/*;./lib/*

Whatever I do, this doesn't work and I end up having to explicity refer to the files within those directories. Any idea how to debug this or does anyone know what I am doing wrong?

Answer Source

See Settings the classpath (Section "Understanding class path wildcards")

You cannot use the Ant or Bash style wildcards, you can only use it in the 'standard' way.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download