** Start of listing of h-java.cgi ** ** End of listing of h-java.cgi ** Here is the directory entry for that file: ^ Note user execute permission needed for all CGI scripts. ** Start of listing of h.java ** class h { public static void main(String args[]) { System.out.println("Content-type: text/plain"); System.out.println(""); System.out.println("Hello World!"); } } ** End of listing of h.java ** Here is the directory entry for that source file and its compilation: -rw------- 1 rem user 220 Jun 26 2005 h.java -rw------- 1 rem user 468 Jun 26 2005 h.class ^ Note user execute permission is *not* needed for separate program files. (Technical explanation: Even though h.java is compiled, the resultant h.class is not native machine code, it is portable bytecode, which cannot be run directly on the machine, but is loaded as data into the JVM which interprets it.) ** Start of listing of hh-java.cgi ** ** End of listing of hh-java.cgi ** Here is the directory entry for that file: ^ Note user execute permission needed for all CGI scripts. ** Start of listing of hh.java ** class hh { public static void main(String args[]) { System.out.println("Content-type: text/html"); System.out.println(""); System.out.print(""); System.out.println(""); System.out.println(""); System.out.print(" "); System.out.println(" Hello java"); System.out.println(""); System.out.println(""); System.out.println("Hello World!"); System.out.println(""); System.out.println(""); } } ** End of listing of hh.java ** Here is the directory entry for that source file and its compilation: -rw------- 1 rem user 883 Jun 26 2005 hh.java -rw------- 1 rem user 944 Nov 12 2013 hh.class ^ Note user execute permission is *not* needed for separate program files.