This is a meta package.  It organizes several existing Java development tools JamVM, GNU Classpath, Jikes, gjdoc, and fastjar into a directory structure that follows Sun's public descriptions of JDK file layout.  Selected files in those packages are soft-linked into the JDK tree.

These packages are prerequsites:

lang/jikes
lang/classpath
lang/jamvm
archivers/fastjar

The functionality provided is only that of the component parts, which may be rudimentary or incomplete for any specific application.

To use this kit for development you will need to set your runtime environment as one would if one were using Sun's JDK:

export JAVA_HOME=/usr/local/jamjdk
export PATH="${JAVA_HOME}/bin:$PATH"

The other reason for this package are the two files in the ports tree:

devel/jamjdk/java.port.mk
infrastructure/mk/java.port.mk

which enables this package to be substituted for the Sun JDK devel/jdk/* for building other OpenBSD Java packages -- such as apache-ant, junit, and eclipse.  For example:

cd /usr/ports/devel/apache-ant
sudo make MODJAVA_PROVIDER=exodus install

See also the description in infrastructure/mk/java.port.mk and the use of MODJAVA_PROVIDER

You can run the shell script jamjdk.inst to set up the directories:

sudo sh /usr/local/bin/jamjdk.inst
