djangofan djangofan - 7 months ago 48
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?


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.