OpenBSD 5 Installing the Open Java JDK
The Unix BSD Tutorial shows you Step-by-Step How to Install and Getting Started with the Java Development Kit 7 for OpenBSD 5.x Unix Server/Desktop.
The Java JDK 7 is a development environment for building applications, applets, and components using the Java programming language.

Login into OpenBSD Shell.
How to Set the Packages Repository Mirror.
OpenBSD Find Packages RepositoryInstalling the Java OpenJDK 7.
pkg_add -v jdk
How to Set Path and Env Vars on OpenBSD