< prev index next >

src/java.base/share/native/libjli/emessages.h

Print this page
rev 17066 : [mq]: tests-0.patch
   1 /*
   2  * Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   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
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  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 /*
  27  * This file primarily consists of all the error and warning messages, that
  28  * are used in JLI_ReportErrorMessage. All message must be defined here, in
  29  * order to help with localizing the messages.
  30  */
  31 
  32 #ifndef _EMESSAGES_H
  33 #define _EMESSAGES_H
  34 
  35 #define GEN_ERROR       "Error: A fatal exception has occurred. Program will exit."
  36 #define JNI_ERROR       "Error: A JNI error has occurred, please check your installation and try again"
  37 #define JNI_ERROR1      "Error: can't find JNI interfaces in: %s"
  38 
  39 #define ARG_INFO_ENVVAR "NOTE: Picked up the following options via %s:\n  %s"
  40 #define ARG_WARN        "Warning: %s option is no longer supported."
  41 

  42 #define ARG_ERROR1      "Error: %s requires class path specification"
  43 #define ARG_ERROR2      "Error: %s requires jar file specification"
  44 #define ARG_ERROR3      "Error: The -J option should not be followed by a space."
  45 #define ARG_ERROR4      "Error: %s requires module path specification"
  46 #define ARG_ERROR5      "Error: %s requires module id"
  47 #define ARG_ERROR6      "Error: %s requires modules to be specified"
  48 #define ARG_ERROR7      "Error: %s can only be specified once"
  49 #define ARG_ERROR8      "Error: Unmatched quote in environment variable %s"
  50 #define ARG_ERROR9      "Error: Option %s is not allowed in environment variable %s"
  51 #define ARG_ERROR10     "Error: Option %s in %s is not allowed in environment variable %s"
  52 #define ARG_ERROR11     "Error: Cannot specify main class in environment variable %s"
  53 
  54 #define JVM_ERROR1      "Error: Could not create the Java Virtual Machine.\n" GEN_ERROR
  55 #define JVM_ERROR2      "Error: Could not detach main thread.\n" JNI_ERROR
  56 #define JVM_ERROR3      "Error: SPARC V8 processor detected;  Required V9 processors or better.\nUse JDK5 client compiler for V8 processors.\n" JVM_ERROR1
  57 
  58 #define JAR_ERROR1      "Error: Failed to load Main-Class manifest attribute from\n%s\n%s"
  59 #define JAR_ERROR2      "Error: Unable to access jarfile %s"
  60 #define JAR_ERROR3      "Error: Invalid or corrupt jarfile %s"
  61 


   1 /*
   2  * Copyright (c) 2005, 2017, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   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
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  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 /*
  27  * This file primarily consists of all the error and warning messages, that
  28  * are used in JLI_ReportErrorMessage. All message must be defined here, in
  29  * order to help with localizing the messages.
  30  */
  31 
  32 #ifndef _EMESSAGES_H
  33 #define _EMESSAGES_H
  34 
  35 #define GEN_ERROR       "Error: A fatal exception has occurred. Program will exit."
  36 #define JNI_ERROR       "Error: A JNI error has occurred, please check your installation and try again"
  37 #define JNI_ERROR1      "Error: can't find JNI interfaces in: %s"
  38 
  39 #define ARG_INFO_ENVVAR "NOTE: Picked up the following options via %s:\n  %s"
  40 #define ARG_WARN        "Warning: %s option is no longer supported."
  41 
  42 #define ARG_ERROR0      "Error: %s invalid argument"
  43 #define ARG_ERROR1      "Error: %s requires class path specification"
  44 #define ARG_ERROR2      "Error: %s requires jar file specification"
  45 #define ARG_ERROR3      "Error: The -J option should not be followed by a space."
  46 #define ARG_ERROR4      "Error: %s requires module path specification"
  47 #define ARG_ERROR5      "Error: %s requires module id"
  48 #define ARG_ERROR6      "Error: %s requires modules to be specified"
  49 #define ARG_ERROR7      "Error: %s can only be specified once"
  50 #define ARG_ERROR8      "Error: Unmatched quote in environment variable %s"
  51 #define ARG_ERROR9      "Error: Option %s is not allowed in environment variable %s"
  52 #define ARG_ERROR10     "Error: Option %s in %s is not allowed in environment variable %s"
  53 #define ARG_ERROR11     "Error: Cannot specify main class in environment variable %s"
  54 
  55 #define JVM_ERROR1      "Error: Could not create the Java Virtual Machine.\n" GEN_ERROR
  56 #define JVM_ERROR2      "Error: Could not detach main thread.\n" JNI_ERROR
  57 #define JVM_ERROR3      "Error: SPARC V8 processor detected;  Required V9 processors or better.\nUse JDK5 client compiler for V8 processors.\n" JVM_ERROR1
  58 
  59 #define JAR_ERROR1      "Error: Failed to load Main-Class manifest attribute from\n%s\n%s"
  60 #define JAR_ERROR2      "Error: Unable to access jarfile %s"
  61 #define JAR_ERROR3      "Error: Invalid or corrupt jarfile %s"
  62 


< prev index next >