LibreOffice LibreOffice 25.2 SDK API Reference

Public Attributes | List of all members
JavaVMCreationFailureException Exception Referencepublished

indicates that the Java Virtual Machine could not be created More...

`import"JavaVMCreationFailureException.idl";`

Inheritance diagram for JavaVMCreationFailureException:

## Public Attributes
long | ErrorCode
| contains an error code that reflects the returned error code of JNI_CreateJavaVM or other errors. More...
Public Attributes inherited from Exception
string | Message
| gives a detailed description of the reason, why the exception was thrown. More...
com::sun::star::uno::XInterface | Context
| should contain a reference to the original, which raised the exception. More...

## Detailed Description

indicates that the Java Virtual Machine could not be created

This exception can be thrown when the creation of the Java Virtual Machine failed, even if the runtime library could be loaded. Possible reasons for a failure are that JNI_CreateJavaVM returns an error code that reflects a failure, JNI_CreateJavaVM does not return because it tries to quit the process ( _exit), the shared library is corrupted, so that the symbols for JNI_GetDefaultVMInitArgs or JNI_CreateJavaVM cannot be found, etc.

Since
  OOo 1.1.2

## Member Data Documentation

## ◆ ErrorCode

long ErrorCode

contains an error code that reflects the returned error code of JNI_CreateJavaVM or other errors.

A negative value represents the returned error code of JNI_CreateJavaVM. All other values indicate a different cause.

The documentation for this exception was generated from the following file:

- com/sun/star/java/JavaVMCreationFailureException.idl