.JavaStart
Start the Java Virtual Machine

Description

Starts the Java virtual machine (JVM) and determines whether it has been started.

Usage

.JavaStart(javaHome, javaOptions, verbose=FALSE)
.JavaIsRunning()

Arguments

javaHome a string specifying the Java home directory. If not given, it defaults to the value of Sys.getenv("JAVA_HOME").
javaOptions a vector of strings specifying Java options used when starting the JVM. If not given, the value of Sys.getenv("JAVA_OPTIONS") is split apart into one or more options.
verbose a logical. If TRUE, debugging information is printed while starting up the JVM, and the Java stack trace is printed on Java exceptions. If not given, it defaults to TRUE if the value of Sys.getenv("JAVA_VERBOSE") is the string "TRUE".

Details

.JavaStart can be called to explicitly start the JVM. It is normally not necessary to call this because it is called explicitly whenever any function like .JavaMethod or .JavaCall tries to access the JVM. If it is called after the JVM is running, it does nothing.
.JavaIsRunning is used to determine whether the JVM is currently running.
Value
.JavaStartreturns NULL (invisibly).
.JavaIsRunningreturns TRUE if the JVM is already running.
See Also
.JavaMethod, .JavaCall
Examples
## check whether the JVM is running
.JavaIsRunning()

## start the JVM, if not already running .JavaStart()

Package terrJava version 6.0.0-69
Package Index