Check version
java -version
Compile example
javac Hello.java
javac -Xlint:unchecked Hello.java # disable lint checking
javac -cp="external.jar;." Hello.java # set class path
Run example
java Hello arg1 arg2
Compile and Run inisde package example
javac Exams/Lotto.java
java exams.Lotto # note the small "e" in "exams" it should follow the package name