< prev index next >

jdk/src/java.base/share/native/launcher/defines.h

Print this page




  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 #ifndef _DEFINES_H
  27 #define _DEFINES_H
  28 
  29 #include "java.h"
  30 



  31 /*
  32  * This file contains commonly defined constants used only by main.c
  33  * and should not be included by another file.
  34  */
  35 #ifndef FULL_VERSION
  36 /* make sure the compilation fails */
  37 #error "FULL_VERSION must be defined"
  38 #endif
  39 
  40 #if defined(JDK_MAJOR_VERSION) && defined(JDK_MINOR_VERSION)
  41 #define DOT_VERSION JDK_MAJOR_VERSION "." JDK_MINOR_VERSION
  42 #else
  43 /* make sure the compilation fails */
  44 #error "JDK_MAJOR_VERSION and JDK_MINOR_VERSION must be defined"
  45 #endif
  46 
  47 
  48 #ifdef JAVA_ARGS
  49 #define HAS_JAVA_ARGS JNI_TRUE
  50 static const char* const_progname = "java";
  51 static const char* const_jargs[] = JAVA_ARGS;
  52 /*
  53  * ApplicationHome is prepended to each of these entries; the resulting
  54  * strings are concatenated (separated by PATH_SEPARATOR) and used as the
  55  * value of -cp option to the launcher.
  56  */
  57 #ifndef APP_CLASSPATH
  58 #define APP_CLASSPATH        { "/lib/tools.jar", "/classes" }
  59 #endif /* APP_CLASSPATH */
  60 static const char* const_appclasspath[] = APP_CLASSPATH;
  61 #else  /* !JAVA_ARGS */




  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 #ifndef _DEFINES_H
  27 #define _DEFINES_H
  28 
  29 #include "java.h"
  30 
  31 #define STR_HELPER(x) #x
  32 #define STR(x) STR_HELPER(x)
  33 
  34 /*
  35  * This file contains commonly defined constants used only by main.c
  36  * and should not be included by another file.
  37  */
  38 #ifndef VERSION_STRING
  39 /* make sure the compilation fails */
  40 #error "VERSION_STRING must be defined"
  41 #endif
  42 
  43 #if defined(VERSION_MAJOR) && defined(VERSION_MINOR)
  44 #define DOT_VERSION STR(VERSION_MAJOR) "." STR(VERSION_MINOR)
  45 #else
  46 /* make sure the compilation fails */
  47 #error "JDK_MAJOR_VERSION and JDK_MINOR_VERSION must be defined"
  48 #endif
  49 
  50 
  51 #ifdef JAVA_ARGS
  52 #define HAS_JAVA_ARGS JNI_TRUE
  53 static const char* const_progname = "java";
  54 static const char* const_jargs[] = JAVA_ARGS;
  55 /*
  56  * ApplicationHome is prepended to each of these entries; the resulting
  57  * strings are concatenated (separated by PATH_SEPARATOR) and used as the
  58  * value of -cp option to the launcher.
  59  */
  60 #ifndef APP_CLASSPATH
  61 #define APP_CLASSPATH        { "/lib/tools.jar", "/classes" }
  62 #endif /* APP_CLASSPATH */
  63 static const char* const_appclasspath[] = APP_CLASSPATH;
  64 #else  /* !JAVA_ARGS */


< prev index next >