// 窗体模式启动进程 只支持win系统 InitLauncher(javaw); DumpState(); if (JLI_IsTraceLauncher()) { int i; printf("Java args:\n"); for (i = 0; i < jargc ; i++) { printf("jargv[%d] = %s\n", i, jargv[i]); } printf("Command line args:\n"); for (i = 0; i < argc ; i++) { printf("argv[%d] = %s\n", i, argv[i]); } AddOption("-Dsun.java.launcher.diag=true", NULL); }
/* * SelectVersion() has several responsibilities: * * 1) Disallow specification of another JRE. With 1.9, another * version of the JRE cannot be invoked. * 2) Allow for a JRE version to invoke JDK 1.9 or later. Since * all mJRE directives have been stripped from the request but * the pre 1.9 JRE [ 1.6 thru 1.8 ], it is as if 1.9+ has been * invoked from the command line. */ SelectVersion(argc, argv, &main_class);