This is Adrian Chadd's java interpreter hook that allows the execution
of java classes as interpreted binaries.  In order to work at all, it
requires that you have installed the java stuff somewhere in /usr/local,
since all the kernel hooks are doing is to detect the java class file
based on its magic number, and hand it off to the actual virtual machine.

All this is a little preliminary, and has not yet been integrated into
the regular source tree.  But sure, you knew this, since you've
descended into the ``experimental'' hierarchy to get here... ;-)

In order to install the package, you need to apply the diff to the
kernel source tree:

	cd /sys
	gzcat java-sys.diff.gz | patch

This will patch the files /sys/conf/files, and /sys/i386/conf/LINT,
and will create the new file /sys/kern/imgact_java.c.  Optionally,
you can also unpack the LKM stuff:

	cd /usr/src/lkm
	tar -xvzf java.lkm.tar.gz

There are by now two options to get these files into effect: you can
statically compile the java hook into your custom kernel by specifying

pseudo-device	java

in the kernel config file.  The actual pathnames to the java interpreter
and classpath can then be configured at run-time using sysctl.  Or, you
can build the loadable kernel module (LKM), and install support for java
binaries into a running kernel (and also uninstall it later again).  For
this, you need to build and install the LKM code, and load the module:

	cd /usr/src/lkm/java
	make obj depend all install
	modload /lkm/java_mod.o

See the file /usr/src/lkm/java/README however about the pathnames to the
java binary, and the classpath, since the LKM currently won't register
the sysctl hooks.

March 18, 1997

Adrian Chadd					Joerg Wunsch
<adrian@psinet.net.au>				<joerg@FreeBSD.org>