OpenVMS Source Code Demos
helloworld
//============================================================================
// title : HelloWorld.java (for case sensitive sessions)
// or : HELLOWORLD.JAVA (case-insensitive sessions might see this)
// platform: OpenVMS-8.4 Itanium
// compile : javac HelloWorld.java
// yields : HelloWorld.class
// run : java "HelloWorld" <<-- note the double-quotes
// notes :
// 1) Java is a case-sensitive language but many parts of OpenVMS are not. If
// your interactive DCL session is initialized as case-insensitive then you
// must double-quote the desired class name in order for the JVM to find then
// execute the desired class
// 2) The filename must exactly match the name found in the public class
// declaration. If change the public class from "HelloWorld" to "Hello_World"
// then you must also modify the filename
//=============================================================================
public class HelloWorld {
public static void main(String[] args) {
// Prints "Hello, World" in the terminal window.
System.out.println("Hello, World");
}
}
Back to
Home
Neil Rieck
Waterloo, Ontario, Canada.