This integrates user arguments with default values to create an object containing the information to parameterize the Java Virtual Machine's and the Omegahat session's initial environments. The object includes a classpath specification, system properties for the JVM that can also be read by the Omegahat system to govern how its elements are instantiated and also a library path for loading shared libraries as JNI code for Java classes.
javaConfig(classPath=character(0), properties=character(0), libraryPath=character(0), options=character(0), default=if (exists(".javaConfig")) .javaConfig else JavaConfiguration())
classpath
. \ If this
is not specified, the environment variable CLASSPATH
is
queried and if this set, its elements are prefixed to the default
ones. -Dname=value
for each
element.System.loadLibrary()
mx
of specifying
the maximum amount of memory (e.g."-Xmx128m"
for 128
megabytes), verbose option (e.g. "-verbose"
or
"-verbose:gc,class"
), etc. See the documentation for your
JVM or "The Java Native Interface" by Sheng Liang (page 250--251) or
any JNI book. classpath
argument to the JVM
initialization.name=value
pairs that are passed to the JVM as system
properties in the form -Dname=value
.System.loadLibrary()
method. .JavaInit
mergePath
mergeProperties
.javaConfig
javaConfig()
javaConfig(classPath=c("/home/duncan/Java", "/home/duncan/xml.jar",
paste(system.file("org","omegahat","Jars"),
"DataStructures.jar",sep="/")))
Run the code above in your browser using DataLab