1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 24#ifndef __com_sun_star_java_JavaVMCreationFailureException_idl__ 25#define __com_sun_star_java_JavaVMCreationFailureException_idl__ 26 27#ifndef __com_sun_star_java_JavaInitializationException_idl__ 28#include <com/sun/star/java/JavaInitializationException.idl> 29#endif 30 31module com { module sun { module star { module java { 32 33 34/** indicates that the Java Virtual Machine could not be created <p> 35 This exception can be thrown when the creation of the Java Virtual 36 Machine failed, even if the runtime library could be loaded. 37 Possible reasons for a failure are that JNI_CreateJavaVM returns 38 an error code that reflects a failure, JNI_CreateJavaVM does not 39 return because it tries to quit the process ( _exit), the shared 40 library is corrupted, so that the symbols for JNI_GetDefaultVMInitArgs 41 or JNI_CreateJavaVM cannot be found, etc. 42 43 @since OpenOffice 1.1.2 44 */ 45published exception JavaVMCreationFailureException: JavaInitializationException 46{ 47 /** contains an error code that reflects the returned error code of 48 JNI_CreateJavaVM or other errors. A negative value represents 49 the returned error code of JNI_CreateJavaVM. All other values 50 indicate a different cause. 51 */ 52 long ErrorCode; 53}; 54 55}; }; }; }; 56 57#endif 58