Saturday, March 08, 2008

Installing Java 1.5 JDK on OpenVMS 8.3 Alpha

I've already covered ancient version of Java and OpenVMS, now it's time for something more recent. Just grab the latest Java 1.5 JDK for OpenVMS from HP.

$ RUN DEC-AXPVMS-JAVA150-V0105-3-1.PCSI_SFX_AXPEXE

$ PRODUCT INSTALL JAVA150 /SOURCE=SYS$SYSROOT:

[SYSMGR] /NORECOVERY_MODE

$ PRODUCT EXTRACT FILE JAVA150 /SOURCE=SYS$SYSROOT:

[SYSMGR] /SELECT=RELEASE_NOTES.HTML /DEST=[]

$ @JAVA$150_SETUP.COM;1

$ java -version
java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition
Classic VM (build 1.5.0-3, 03/01/2007-14:39, native
threads, jit)

$ javac -version
javac 1.5.0

$ SET TERMINAL/DEVICE=VT102

$ EDIT hello.java
class HelloWorldApp {
public static void main(String[] args) {
System.out.println("Hello, OpenVMS!");
}
}
^z

$ javac hello.java

$ java hello
Hello, OpenVMS!

No comments:

Post a Comment