SJava (version 0.98.0)

.JavaTerminate: Terminates the Java Virtual Machine

Description

Unloads the Java Virtual Machine, releasing its resources and terminating the Omegahat session. Once the JVM is terminated, it cannot be restarted within this R session.

Usage

.JavaTerminate()

Arguments

Value

TRUE indicating that the JVM is terminated and should not be used.

Details

This just calls the internal routine which notifies the JVM that it should terminate. Exactly how this action is performed depends on the current state of the JVM and the threads that are active.

References

http://www.omegahat.org/RSJava

See Also

.JavaInit

Examples

Run this code
## Not run: 
#    # active the JVM only to find out what
#    # version of Java it supports. 
#    # No further activity can take place in the 
#    # Java session.
#    #
#  .JavaInit()
#  jversion <- .Java("System", "getProperty", "java.version")
#  .JavaTerminate()
# ## End(Not run)

Run the code above in your browser using DataCamp Workspace