home *** CD-ROM | disk | FTP | other *** search
- /*
- * @(#)jre.h 1.8 98/07/01
- *
- * Copyright 1997, 1998 by Sun Microsystems, Inc.,
- * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
- * All rights reserved.
- *
- * This software is the confidential and proprietary information
- * of Sun Microsystems, Inc. ("Confidential Information"). You
- * shall not disclose such Confidential Information and shall use
- * it only in accordance with the terms of the license agreement
- * you entered into with Sun.
- */
-
- /*
- * Portable JRE support functions.
- */
-
- #include <stdio.h>
- #include <stdlib.h>
- #include <jni.h>
-
- #include "jre_md.h"
-
- /*
- * Java runtime settings.
- */
- typedef struct JRESettings {
- char *javaHome; /* Java home directory */
- char *runtimeLib; /* Runtime shared library or DLL */
- char *classPath; /* Default class path */
- char *compiler; /* Just-in-time (JIT) compiler */
- char *majorVersion; /* Major version of runtime */
- char *minorVersion; /* Minor version of runtime */
- char *microVersion; /* Micro version of runtime */
- } JRESettings;
-
- /*
- * JRE functions.
- */
- void *JRE_LoadLibrary(const char *path);
- void JRE_UnloadLibrary(void *handle);
- jint JRE_GetDefaultJavaVMInitArgs(void *handle, void *vmargsp);
- jint JRE_CreateJavaVM(void *handle, JavaVM **vmp, JNIEnv **envp,
- void *vmargsp);
- jint JRE_GetCurrentSettings(JRESettings *set);
- jint JRE_GetSettings(JRESettings *set, const char *ver);
- jint JRE_GetDefaultSettings(JRESettings *set);
- jint JRE_ParseVersion(const char *version,
- char **majorp, char **minorp, char **microp);
- char *JRE_MakeVersion(const char *major, const char *minor, const char *micro);
- void *JRE_Malloc(size_t size);
- void JRE_FatalError(JNIEnv *env, const char *msg);
- char *JRE_GetDefaultRuntimeLib(const char *dir);
- char *JRE_GetDefaultClassPath(const char *dir);
-