229 int mode = LM_UNKNOWN;
230 char *what = NULL;
231 char *main_class = NULL;
232 int ret;
233 InvocationFunctions ifn;
234 jlong start, end;
235 char jvmpath[MAXPATHLEN];
236 char jrepath[MAXPATHLEN];
237 char jvmcfg[MAXPATHLEN];
238
239 _fVersion = fullversion;
240 _launcher_name = lname;
241 _program_name = pname;
242 _is_java_args = javaargs;
243 _wc_enabled = cpwildcard;
244
245 InitLauncher(javaw);
246 DumpState();
247 if (JLI_IsTraceLauncher()) {
248 int i;
249 printf("Command line args:\n");
250 for (i = 0; i < argc ; i++) {
251 printf("argv[%d] = %s\n", i, argv[i]);
252 }
253 AddOption("-Dsun.java.launcher.diag=true", NULL);
254 }
255
256 /*
257 * SelectVersion() has several responsibilities:
258 *
259 * 1) Disallow specification of another JRE. With 1.9, another
260 * version of the JRE cannot be invoked.
261 * 2) Allow for a JRE version to invoke JDK 1.9 or later. Since
262 * all mJRE directives have been stripped from the request but
263 * the pre 1.9 JRE [ 1.6 thru 1.8 ], it is as if 1.9+ has been
264 * invoked from the command line.
265 */
266 SelectVersion(argc, argv, &main_class);
267
268 CreateExecutionEnvironment(&argc, &argv,
|
229 int mode = LM_UNKNOWN;
230 char *what = NULL;
231 char *main_class = NULL;
232 int ret;
233 InvocationFunctions ifn;
234 jlong start, end;
235 char jvmpath[MAXPATHLEN];
236 char jrepath[MAXPATHLEN];
237 char jvmcfg[MAXPATHLEN];
238
239 _fVersion = fullversion;
240 _launcher_name = lname;
241 _program_name = pname;
242 _is_java_args = javaargs;
243 _wc_enabled = cpwildcard;
244
245 InitLauncher(javaw);
246 DumpState();
247 if (JLI_IsTraceLauncher()) {
248 int i;
249 printf("Java args:\n");
250 for (i = 0; i < jargc ; i++) {
251 printf("jargv[%d] = %s\n", i, jargv[i]);
252 }
253 printf("Command line args:\n");
254 for (i = 0; i < argc ; i++) {
255 printf("argv[%d] = %s\n", i, argv[i]);
256 }
257 AddOption("-Dsun.java.launcher.diag=true", NULL);
258 }
259
260 /*
261 * SelectVersion() has several responsibilities:
262 *
263 * 1) Disallow specification of another JRE. With 1.9, another
264 * version of the JRE cannot be invoked.
265 * 2) Allow for a JRE version to invoke JDK 1.9 or later. Since
266 * all mJRE directives have been stripped from the request but
267 * the pre 1.9 JRE [ 1.6 thru 1.8 ], it is as if 1.9+ has been
268 * invoked from the command line.
269 */
270 SelectVersion(argc, argv, &main_class);
271
272 CreateExecutionEnvironment(&argc, &argv,
|