When running java from the command line:
java -classpath bin:pellet-2.0.0/lib/* com.stuff.MyClass argumentTextStuff
I'm getting the following reply:
java: No match.
What's this mean? which java
points to the expected file. And if I take the asterisk out, then I get the expected class not found error. Google searches aren't fruitful because I keep getting stuff about matching regexp patterns.
Ah... already figured it out. It worked when I was using a bash shell, however the * is treated differently in the tcsh shell. So we switched to bash and it works. The reason is described here (per polygenelubricants's suggestion in the comments below).
That is a bash (or whatever shell are you using) error message not a java one.
It means that "bin:pellet-2.0.0/lib/*" doesn't match any file.
Do not use wildcards in classpath.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With