< prev index next >

src/java.base/share/native/libjli/java.h

Print this page




  61  * removed which would cause any value found in the manifest to be used.
  62  * This would be incorrect because the command line options are defined
  63  * to take precedence.
  64  *
  65  * The value associated with this environment variable is the MainClass
  66  * name from within the executable jar file (if any). This is strictly a
  67  * performance enhancement to avoid re-reading the jar file manifest.
  68  *
  69  */
  70 #define ENV_ENTRY "_JAVA_VERSION_SET"
  71 
  72 #define SPLASH_FILE_ENV_ENTRY "_JAVA_SPLASH_FILE"
  73 #define SPLASH_JAR_ENV_ENTRY "_JAVA_SPLASH_JAR"
  74 
  75 /*
  76  * Pointers to the needed JNI invocation API, initialized by LoadJavaVM.
  77  */
  78 typedef jint (JNICALL *CreateJavaVM_t)(JavaVM **pvm, void **env, void *args);
  79 typedef jint (JNICALL *GetDefaultJavaVMInitArgs_t)(void *args);
  80 typedef jint (JNICALL *GetCreatedJavaVMs_t)(JavaVM **vmBuf, jsize bufLen, jsize *nVMs);

  81 
  82 typedef struct {
  83     CreateJavaVM_t CreateJavaVM;
  84     GetDefaultJavaVMInitArgs_t GetDefaultJavaVMInitArgs;
  85     GetCreatedJavaVMs_t GetCreatedJavaVMs;

  86 } InvocationFunctions;
  87 
  88 int
  89 JLI_Launch(int argc, char ** argv,              /* main argc, argc */
  90         int jargc, const char** jargv,          /* java args */
  91         int appclassc, const char** appclassv,  /* app classpath */
  92         const char* fullversion,                /* full version defined */
  93         const char* dotversion,                 /* dot version defined */
  94         const char* pname,                      /* program name */
  95         const char* lname,                      /* launcher name */
  96         jboolean javaargs,                      /* JAVA_ARGS */
  97         jboolean cpwildcard,                    /* classpath wildcard */
  98         jboolean javaw,                         /* windows-only javaw */
  99         jint     ergo_class                     /* ergnomics policy */
 100 );
 101 
 102 /*
 103  * Prototypes for launcher functions in the system specific java_md.c.
 104  */
 105 




  61  * removed which would cause any value found in the manifest to be used.
  62  * This would be incorrect because the command line options are defined
  63  * to take precedence.
  64  *
  65  * The value associated with this environment variable is the MainClass
  66  * name from within the executable jar file (if any). This is strictly a
  67  * performance enhancement to avoid re-reading the jar file manifest.
  68  *
  69  */
  70 #define ENV_ENTRY "_JAVA_VERSION_SET"
  71 
  72 #define SPLASH_FILE_ENV_ENTRY "_JAVA_SPLASH_FILE"
  73 #define SPLASH_JAR_ENV_ENTRY "_JAVA_SPLASH_JAR"
  74 
  75 /*
  76  * Pointers to the needed JNI invocation API, initialized by LoadJavaVM.
  77  */
  78 typedef jint (JNICALL *CreateJavaVM_t)(JavaVM **pvm, void **env, void *args);
  79 typedef jint (JNICALL *GetDefaultJavaVMInitArgs_t)(void *args);
  80 typedef jint (JNICALL *GetCreatedJavaVMs_t)(JavaVM **vmBuf, jsize bufLen, jsize *nVMs);
  81 typedef void (JNICALL *SetNativeThreadName0_t)(const char *name);
  82 
  83 typedef struct {
  84     CreateJavaVM_t CreateJavaVM;
  85     GetDefaultJavaVMInitArgs_t GetDefaultJavaVMInitArgs;
  86     GetCreatedJavaVMs_t GetCreatedJavaVMs;
  87     SetNativeThreadName0_t SetNativeThreadName0;
  88 } InvocationFunctions;
  89 
  90 int
  91 JLI_Launch(int argc, char ** argv,              /* main argc, argc */
  92         int jargc, const char** jargv,          /* java args */
  93         int appclassc, const char** appclassv,  /* app classpath */
  94         const char* fullversion,                /* full version defined */
  95         const char* dotversion,                 /* dot version defined */
  96         const char* pname,                      /* program name */
  97         const char* lname,                      /* launcher name */
  98         jboolean javaargs,                      /* JAVA_ARGS */
  99         jboolean cpwildcard,                    /* classpath wildcard */
 100         jboolean javaw,                         /* windows-only javaw */
 101         jint     ergo_class                     /* ergnomics policy */
 102 );
 103 
 104 /*
 105  * Prototypes for launcher functions in the system specific java_md.c.
 106  */
 107 


< prev index next >