I'm having troubles with converting my javac command as used under windows (my libraries are placed within the lib folder, the source code within the src folder, and the compiled code should be placed within the bin folder):
javac -cp lib/\* -d bin src/\*.java
javac -cp lib/* -d bin src/*.java
"invalid flag: lib/org.eclipse.paho.client.mqttv3-1.0.2.jar".
This is one of those odd things that happens when you don't put quotes around an argument.
Solution worked out in comments section: "lib/" instead of lib/
javac -cp "lib/*" -d bin src/*.java
The other issue was that
; is needed instead of
: in Linux for classpaths.