src/java.base/share/native/libjli/java.h
branchihse-remove-mapfiles-branch
changeset 56721 01b558efd286
parent 56115 fb63c41a240c
parent 50453 f91927a2c8d3
equal deleted inserted replaced
56118:edf8a95b46e5 56721:01b558efd286
    84     CreateJavaVM_t CreateJavaVM;
    84     CreateJavaVM_t CreateJavaVM;
    85     GetDefaultJavaVMInitArgs_t GetDefaultJavaVMInitArgs;
    85     GetDefaultJavaVMInitArgs_t GetDefaultJavaVMInitArgs;
    86     GetCreatedJavaVMs_t GetCreatedJavaVMs;
    86     GetCreatedJavaVMs_t GetCreatedJavaVMs;
    87 } InvocationFunctions;
    87 } InvocationFunctions;
    88 
    88 
    89 JNIEXPORT int
    89 JNIEXPORT int JNICALL
    90 JLI_Launch(int argc, char ** argv,              /* main argc, argc */
    90 JLI_Launch(int argc, char ** argv,              /* main argc, argc */
    91         int jargc, const char** jargv,          /* java args */
    91         int jargc, const char** jargv,          /* java args */
    92         int appclassc, const char** appclassv,  /* app classpath */
    92         int appclassc, const char** appclassv,  /* app classpath */
    93         const char* fullversion,                /* full version defined */
    93         const char* fullversion,                /* full version defined */
    94         const char* dotversion,                 /* dot version defined */
    94         const char* dotversion,                 /* dot version defined */
   131                                 char *jrepath, jint so_jrepath,
   131                                 char *jrepath, jint so_jrepath,
   132                                 char *jvmpath, jint so_jvmpath,
   132                                 char *jvmpath, jint so_jvmpath,
   133                                 char *jvmcfg,  jint so_jvmcfg);
   133                                 char *jvmcfg,  jint so_jvmcfg);
   134 
   134 
   135 /* Reports an error message to stderr or a window as appropriate. */
   135 /* Reports an error message to stderr or a window as appropriate. */
   136 JNIEXPORT void JLI_ReportErrorMessage(const char * message, ...);
   136 JNIEXPORT void JNICALL
       
   137 JLI_ReportErrorMessage(const char * message, ...);
   137 
   138 
   138 /* Reports a system error message to stderr or a window */
   139 /* Reports a system error message to stderr or a window */
   139 JNIEXPORT void JLI_ReportErrorMessageSys(const char * message, ...);
   140 JNIEXPORT void JNICALL
       
   141 JLI_ReportErrorMessageSys(const char * message, ...);
   140 
   142 
   141 /* Reports an error message only to stderr. */
   143 /* Reports an error message only to stderr. */
   142 JNIEXPORT void JLI_ReportMessage(const char * message, ...);
   144 JNIEXPORT void JNICALL
       
   145 JLI_ReportMessage(const char * message, ...);
   143 
   146 
   144 /* Reports a message only to stdout. */
   147 /* Reports a message only to stdout. */
   145 void JLI_ShowMessage(const char * message, ...);
   148 void JLI_ShowMessage(const char * message, ...);
   146 
   149 
   147 /*
   150 /*
   148  * Reports an exception which terminates the vm to stderr or a window
   151  * Reports an exception which terminates the vm to stderr or a window
   149  * as appropriate.
   152  * as appropriate.
   150  */
   153  */
   151 JNIEXPORT void JLI_ReportExceptionDescription(JNIEnv * env);
   154 JNIEXPORT void JNICALL
       
   155 JLI_ReportExceptionDescription(JNIEnv * env);
   152 void PrintMachineDependentOptions();
   156 void PrintMachineDependentOptions();
   153 
   157 
   154 /*
   158 /*
   155  * Block current thread and continue execution in new thread
   159  * Block current thread and continue execution in new thread
   156  */
   160  */
   224 
   228 
   225 enum LaunchMode {               // cf. sun.launcher.LauncherHelper
   229 enum LaunchMode {               // cf. sun.launcher.LauncherHelper
   226     LM_UNKNOWN = 0,
   230     LM_UNKNOWN = 0,
   227     LM_CLASS,
   231     LM_CLASS,
   228     LM_JAR,
   232     LM_JAR,
   229     LM_MODULE
   233     LM_MODULE,
       
   234     LM_SOURCE
   230 };
   235 };
   231 
   236 
   232 static const char *launchModeNames[]
   237 static const char *launchModeNames[]
   233     = { "Unknown", "Main class", "JAR file", "Module" };
   238     = { "Unknown", "Main class", "JAR file", "Module", "Source" };
   234 
   239 
   235 typedef struct {
   240 typedef struct {
   236     int    argc;
   241     int    argc;
   237     char **argv;
   242     char **argv;
   238     int    mode;
   243     int    mode;