Manual Java installation from ports
Download ports.tar.gz and extract file:
# cd /usr
# ftp ftp://ftp.openbsd.org/pub/OpenBSD/4.2/ports.tar.gz
# tar -zxvpf ports.tar.gz
Now change directory to java make files, run make and follow the instructions:
# cd /usr/ports/devel/jdk/1.4
# make
# make install
Some additional files should be downloaded by instructions.
After hours of compiling java is located in "/usr/local/jdk-1.4.2/bin/"
Java test application:
# /usr/local/jdk-1.4.2/bin/javac hello.java
Run application:
# /usr/local/jdk-1.4.2/bin/java hello
or
# /usr/local/jre-1.4.2/bin/java hello
Author: TomazZ (tzveglic @ email . si)