how to run java code in ubuntu terminal code example Example: how to run java program in linux server javac HelloWorld.java java HelloWorld