equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
169 * |
169 * |
170 */ |
170 */ |
171 void |
171 void |
172 CreateExecutionEnvironment(int *pargc, char ***pargv, |
172 CreateExecutionEnvironment(int *pargc, char ***pargv, |
173 char *jrepath, jint so_jrepath, |
173 char *jrepath, jint so_jrepath, |
174 char *jvmpath, jint so_jvmpath) { |
174 char *jvmpath, jint so_jvmpath, |
|
175 char *jvmcfg, jint so_jvmcfg) { |
175 char * jvmtype; |
176 char * jvmtype; |
176 int i = 0; |
177 int i = 0; |
177 int running = CURRENT_DATA_MODEL; |
178 int running = CURRENT_DATA_MODEL; |
178 |
179 |
179 int wanted = running; |
180 int wanted = running; |
198 if (!GetJREPath(jrepath, so_jrepath)) { |
199 if (!GetJREPath(jrepath, so_jrepath)) { |
199 JLI_ReportErrorMessage(JRE_ERROR1); |
200 JLI_ReportErrorMessage(JRE_ERROR1); |
200 exit(2); |
201 exit(2); |
201 } |
202 } |
202 |
203 |
|
204 JLI_Snprintf(jvmcfg, so_jvmcfg, "%s%slib%s%s%sjvm.cfg", |
|
205 jrepath, FILESEP, FILESEP, (char*)GetArch(), FILESEP); |
|
206 |
203 /* Find the specified JVM type */ |
207 /* Find the specified JVM type */ |
204 if (ReadKnownVMs(jrepath, (char*)GetArch(), JNI_FALSE) < 1) { |
208 if (ReadKnownVMs(jvmcfg, JNI_FALSE) < 1) { |
205 JLI_ReportErrorMessage(CFG_ERROR7); |
209 JLI_ReportErrorMessage(CFG_ERROR7); |
206 exit(1); |
210 exit(1); |
207 } |
211 } |
208 |
212 |
209 jvmtype = CheckJvmType(pargc, pargv, JNI_FALSE); |
213 jvmtype = CheckJvmType(pargc, pargv, JNI_FALSE); |
1321 fnPreloadStop(); |
1325 fnPreloadStop(); |
1322 } |
1326 } |
1323 } |
1327 } |
1324 |
1328 |
1325 #endif /* ENABLE_AWT_PRELOAD */ |
1329 #endif /* ENABLE_AWT_PRELOAD */ |
|
1330 |
|
1331 int |
|
1332 JVMInit(InvocationFunctions* ifn, jlong threadStackSize, |
|
1333 int argc, char **argv, |
|
1334 int mode, char *what, int ret) |
|
1335 { |
|
1336 ShowSplashScreen(); |
|
1337 return ContinueInNewThread(ifn, threadStackSize, argc, argv, mode, what, ret); |
|
1338 } |
|
1339 |
|
1340 void |
|
1341 PostJVMInit(JNIEnv *env, jstring mainClass, JavaVM *vm) |
|
1342 { |
|
1343 // stubbed out for windows and *nixes. |
|
1344 } |
|
1345 |
|
1346 void |
|
1347 RegisterThread() |
|
1348 { |
|
1349 // stubbed out for windows and *nixes. |
|
1350 } |
|
1351 |
|
1352 /* |
|
1353 * on windows, we return a false to indicate this option is not applicable |
|
1354 */ |
|
1355 jboolean |
|
1356 ProcessPlatformOption(const char *arg) |
|
1357 { |
|
1358 return JNI_FALSE; |
|
1359 } |