how to write and execute java code on ubuntu code example Example: how to run java program in linux server javac HelloWorld.java java HelloWorld