1 /* |
1 /* |
2 * Copyright (c) 1998, 2008, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1998, 2010, 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 |
112 jboolean |
112 jboolean |
113 GetApplicationHome(char *buf, jint bufsize); |
113 GetApplicationHome(char *buf, jint bufsize); |
114 |
114 |
115 #define GetArch() GetArchPath(CURRENT_DATA_MODEL) |
115 #define GetArch() GetArchPath(CURRENT_DATA_MODEL) |
116 |
116 |
117 void CreateExecutionEnvironment(int *_argc, |
117 /* |
118 char ***_argv, |
118 * Different platforms will implement this, here |
119 char jrepath[], |
119 * pargc is a pointer to the original argc, |
120 jint so_jrepath, |
120 * pargv is a pointer to the original argv, |
121 char jvmpath[], |
121 * jrepath is an accessible path to the jre as determined by the call |
122 jint so_jvmpath, |
122 * so_jrepath is the length of the buffer jrepath |
123 char **original_argv); |
123 * jvmpath is an accessible path to the jvm as determined by the call |
|
124 * so_jvmpath is the length of the buffer jvmpath |
|
125 */ |
|
126 void CreateExecutionEnvironment(int *argc, char ***argv, |
|
127 char *jrepath, jint so_jrepath, |
|
128 char *jvmpath, jint so_jvmpath); |
|
129 |
124 /* Reports an error message to stderr or a window as appropriate. */ |
130 /* Reports an error message to stderr or a window as appropriate. */ |
125 void JLI_ReportErrorMessage(const char * message, ...); |
131 void JLI_ReportErrorMessage(const char * message, ...); |
126 |
132 |
127 /* Reports a system error message to stderr or a window */ |
133 /* Reports a system error message to stderr or a window */ |
128 void JLI_ReportErrorMessageSys(const char * message, ...); |
134 void JLI_ReportErrorMessageSys(const char * message, ...); |