compile java to jar in mac

Java
javac HelloWorld.java
Source

Also in Java: