I am attempting to run VLCJ test jar from command line. VLCJ requires two external JARs
- jna.jar
- platform.jar
If I put those jars in the same directory as the executable jar I am attempting to run, I can run it successfully. However if I put them in their own directory and do the following:
java -classpath "C:\Users\Constantin\workspace\Java Libraries\JNA" -jar executable.jar
It cannot find a class from the JNA libraries. I am very new to Java, and my searches are not revealing a possible answer. So I was hoping someone could help answer:
How do I debug this? Why is it not finding the jar? Am I doing something wrong with my -classpath?
Thank you in advance!
Constantin
-jar
is specified, all other classpath settings will be ignored. – Henchman