# comile Java class javac YourClass.java # run compiled Java class java YourClass # run Java class directly java YourClass.java # run JAR java -jar YourJar.jar