djangofan djangofan - 3 months ago 35
Java Question

Why aren't wildcarded classpaths working for me?

Im using JDK 1.6.0.25. 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

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.