JavaVM:
IsJavaVMLoaded method
Description
Determines
whether the Java VM has been loaded.
Syntax
1 |
<span>javavm</span>.IsJavaVMLoaded( <span></span>) |
Argument |
Description |
---|---|
javavm |
An instance of the JavaVM class |
Return Values
Boolean. Returns true if
the Java VM has already been loaded and false if
it has not.
Examples
This example tests whether the Java VM has been loaded
before attempting to create and load a Java VM:
1 |
if (IsJavaVMLoaded) then<br>   // skip some processing<br>else<br>   // perform processing<br>end if |
Usage
Use this method if you need to determine whether the Java
VM is loaded before proceeding. You might want to enable or disable
some features of your application if the Java VM has already been
loaded. For example, if your application provides a window in which
the user can specify a list of classes that is added to the classpath
used by the CreateJavaVM method, you can disable
this feature if the Java VM has already been loaded, because any changes
made in that window would have no effect.