I'm having some problems specifying multiple.jar files when i compile my project. I'm almost certain that:
sudo javac -classpath .:../lib/*.jar server/*.java models/*.java authentication/*.java database/*.java
would work. Just as with the .java files. But it doesn't.
I just now realised that i have to specify each .jar as following:
sudo javac -classpath .:../lib/gson-2.2.4.jar:../lib/mysql-connector-java-5.1.26-bin.jar server/*.java models/*.java authentication/*.java database/*.java
So, do I really have to add a new .jar to my run.sh shell code each time i need a new .jar?
To sum the question:
-classpath .:../lib/gson-2.2.4.jar:../lib/mysql-connector-java-5.1.26-bin.jar
works.
-classpath .:../lib/*.jar
Does not, why?