Compile Java on command line and Include packages
As I’m getting more and more a friend of pure commandline programming, I tried to compile a Java-file directly!
But this file has references to external classes, provided in *.jar files! What made me struggling a little bit!
Like always…Googling that helped a lot to find the answer!
So that’s the trick:
javac -cp '.:package_1.jar:package_2.jar' MyJavaFile.java
Notice: That works only on Linux systems