I've been programming Java on windows for ages and just moved to the Mac.
I'm running the following command which works on the PC but doesn't on a Mac what am I doing wrong.
java -classpath ./lib.patches/*:./lib.core/*:./lib.custom/* test.Test
This gives me a ClassNotFound but test.Test is in a one of the jars in the path.
Thanks for all help.
OK I've debugged further and when I run this command
java -cp . test.Test
I've worked it out!!
The script was copied from a PC and had the wrong returns to end the lines.
This had the bizarre outcome of creating a ClassNotFound.
from the command line it works but from a script it throws ClassNotFound - must be a Mac issue ...