equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2005, 2015, 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 |
44 #error "JDK_MAJOR_VERSION and JDK_MINOR_VERSION must be defined" |
44 #error "JDK_MAJOR_VERSION and JDK_MINOR_VERSION must be defined" |
45 #endif |
45 #endif |
46 |
46 |
47 |
47 |
48 #ifdef JAVA_ARGS |
48 #ifdef JAVA_ARGS |
|
49 #define HAS_JAVA_ARGS JNI_TRUE |
49 static const char* const_progname = "java"; |
50 static const char* const_progname = "java"; |
50 static const char* const_jargs[] = JAVA_ARGS; |
51 static const char* const_jargs[] = JAVA_ARGS; |
51 /* |
52 /* |
52 * ApplicationHome is prepended to each of these entries; the resulting |
53 * ApplicationHome is prepended to each of these entries; the resulting |
53 * strings are concatenated (separated by PATH_SEPARATOR) and used as the |
54 * strings are concatenated (separated by PATH_SEPARATOR) and used as the |
56 #ifndef APP_CLASSPATH |
57 #ifndef APP_CLASSPATH |
57 #define APP_CLASSPATH { "/lib/tools.jar", "/classes" } |
58 #define APP_CLASSPATH { "/lib/tools.jar", "/classes" } |
58 #endif /* APP_CLASSPATH */ |
59 #endif /* APP_CLASSPATH */ |
59 static const char* const_appclasspath[] = APP_CLASSPATH; |
60 static const char* const_appclasspath[] = APP_CLASSPATH; |
60 #else /* !JAVA_ARGS */ |
61 #else /* !JAVA_ARGS */ |
|
62 #define HAS_JAVA_ARGS JNI_FALSE |
61 #ifdef PROGNAME |
63 #ifdef PROGNAME |
62 static const char* const_progname = PROGNAME; |
64 static const char* const_progname = PROGNAME; |
63 #else |
65 #else |
64 static char* const_progname = NULL; |
66 static char* const_progname = NULL; |
65 #endif |
67 #endif |