As of version 1.4 of Anetd, Java virtual machines (JVMs) are no longer bundled with the Anetd distribution. There are two main reasons for this:
The ABOCC may preconfigure Anetd to look for recommended JDK versions
in particular locations. Node administrators then have the option of
installing these recommended versions in the specified locations,
or specifying the installation locations of their installed JDKs
in the local configuration file (for each Anetd instance). The
installation location for a particular version of the JDK is configured
via a key of the form ``jdk<version>
'', where version is the
version number of the JDK, for example 1.2.2. Thus, a JDK configuration
entry in the configuration file might appear as
jdk1.2.2 /path/to/jdk1.2.2
V
'' option in the
LOAD
command (see section 3.8).
Two additional keys, java<version>
and javag<version>
,
specify the invocation strings for Java and Java with debugging support,
respectively. The value of each key should be a list of strings,
the first specifying the location of the Java binary, and the remaining
specifying additional arguments with Java should be invoked, for example,
java1.2.2 "$(jdk1.2.2)/bin/java"
javag1.2.2 "$(jdk1.2.2)/bin/java", "-Xdebug", "-Djava.compiler=NONE",
"-Xbootclasspath:$(jdk1.2.0)/jre/lib/rt.jar:$(jdk1.2.0)/lib/tools.jar",
"-Xrunjdwp:transport=dt_socket,server=y,suspend=n", "-Xnoagent"
Along with each JDK configuration entry, there should be an
entry to specify the location of the Java security policy file to be
used with corresponding JDK. The location of a Java security policy file
is configured via a key of the form jsp<version>
, for example
jsp1.2.2 $(abocc_conf_dir)/java-policy-1.2.2