jdk/src/java.base/share/native/libjli/emessages.h
author alanb
Thu, 04 May 2017 07:26:55 +0000
changeset 45004 ea3137042a61
parent 43325 033e4cced1dc
child 45252 654115968257
permissions -rw-r--r--
8178380: Module system implementation refresh (5/2017) Reviewed-by: mchung, alanb, sspitsyn Contributed-by: alan.bateman@oracle.com, mandy.chung@oracle.com, chris.hegarty@oracle.com
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
27938
7f7f8bf64dd7 8058407: Remove Multiple JRE support in the Java launcher
ksrini
parents: 25859
diff changeset
     2
 * Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2624
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2624
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
 *
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2624
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2624
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2624
diff changeset
    23
 * questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
 * This file primarily consists of all the error and warning messages, that
1145
404b11752c57 6685121: (launcher) make ReportErrorMessages accessible by other launcher subsystems
ksrini
parents: 399
diff changeset
    28
 * are used in JLI_ReportErrorMessage. All message must be defined here, in
404b11752c57 6685121: (launcher) make ReportErrorMessages accessible by other launcher subsystems
ksrini
parents: 399
diff changeset
    29
 * order to help with localizing the messages.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
#ifndef _EMESSAGES_H
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
#define _EMESSAGES_H
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
#define GEN_ERROR       "Error: A fatal exception has occurred. Program will exit."
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
#define JNI_ERROR       "Error: A JNI error has occurred, please check your installation and try again"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
#define JNI_ERROR1      "Error: can't find JNI interfaces in: %s"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
43325
033e4cced1dc 8170832: Add a new launcher environment variable JAVA_OPTIONS
henryjen
parents: 36511
diff changeset
    39
#define ARG_INFO_ENVVAR "NOTE: Picked up the following options via %s:\n  %s"
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
#define ARG_WARN        "Warning: %s option is no longer supported."
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
#define ARG_ERROR1      "Error: %s requires class path specification"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
#define ARG_ERROR2      "Error: %s requires jar file specification"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
#define ARG_ERROR3      "Error: The -J option should not be followed by a space."
36511
9d0388c6b336 8142968: Module System implementation
alanb
parents: 32267
diff changeset
    45
#define ARG_ERROR4      "Error: %s requires module path specification"
45004
ea3137042a61 8178380: Module system implementation refresh (5/2017)
alanb
parents: 43325
diff changeset
    46
#define ARG_ERROR5      "Error: %s requires module name"
36511
9d0388c6b336 8142968: Module System implementation
alanb
parents: 32267
diff changeset
    47
#define ARG_ERROR6      "Error: %s requires modules to be specified"
9d0388c6b336 8142968: Module System implementation
alanb
parents: 32267
diff changeset
    48
#define ARG_ERROR7      "Error: %s can only be specified once"
43325
033e4cced1dc 8170832: Add a new launcher environment variable JAVA_OPTIONS
henryjen
parents: 36511
diff changeset
    49
#define ARG_ERROR8      "Error: Unmatched quote in environment variable %s"
033e4cced1dc 8170832: Add a new launcher environment variable JAVA_OPTIONS
henryjen
parents: 36511
diff changeset
    50
#define ARG_ERROR9      "Error: Option %s is not allowed in environment variable %s"
033e4cced1dc 8170832: Add a new launcher environment variable JAVA_OPTIONS
henryjen
parents: 36511
diff changeset
    51
#define ARG_ERROR10     "Error: Option %s in %s is not allowed in environment variable %s"
033e4cced1dc 8170832: Add a new launcher environment variable JAVA_OPTIONS
henryjen
parents: 36511
diff changeset
    52
#define ARG_ERROR11     "Error: Cannot specify main class in environment variable %s"
45004
ea3137042a61 8178380: Module system implementation refresh (5/2017)
alanb
parents: 43325
diff changeset
    53
#define ARG_ERROR12     "Error: %s requires module name"
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
#define JVM_ERROR1      "Error: Could not create the Java Virtual Machine.\n" GEN_ERROR
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
#define JVM_ERROR2      "Error: Could not detach main thread.\n" JNI_ERROR
6005
f9e6c98d4ee3 6921472: RFE: java launcher code needs clean up
ksrini
parents: 5506
diff changeset
    57
#define JVM_ERROR3      "Error: SPARC V8 processor detected;  Required V9 processors or better.\nUse JDK5 client compiler for V8 processors.\n" JVM_ERROR1
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
#define JAR_ERROR1      "Error: Failed to load Main-Class manifest attribute from\n%s\n%s"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
#define JAR_ERROR2      "Error: Unable to access jarfile %s"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
#define JAR_ERROR3      "Error: Invalid or corrupt jarfile %s"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
399
bcc2354430ff 6684582: Launcher needs improved error reporting
ksrini
parents: 2
diff changeset
    63
#define CLS_ERROR1      "Error: Could not find the main class %s.\n" JNI_ERROR
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
#define CLS_ERROR2      "Error: Failed to load Main Class: %s\n%s"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
#define CLS_ERROR3      "Error: No main method found in specified class.\n" GEN_ERROR
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
#define CLS_ERROR4      "Error: Main method not public\n" GEN_ERROR
2598
6f980e1d6e31 6733959: Insufficient checks for "Main-Class" manifest entry in JAR files
ksrini
parents: 399
diff changeset
    67
#define CLS_ERROR5      "Error: main-class: attribute exceeds system limits of %d bytes\n" GEN_ERROR
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
#define CFG_WARN1       "Warning: %s VM not supported; %s VM will be used"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
#define CFG_WARN2       "Warning: No leading - on line %d of `%s'"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
#define CFG_WARN3       "Warning: Missing VM type on line %d of `%s'"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
#define CFG_WARN4       "Warning: Missing server class VM on line %d of `%s'"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
#define CFG_WARN5       "Warning: Unknown VM type on line %d of `%s'"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
#define CFG_ERROR1      "Error: Corrupt jvm.cfg file; cycle in alias list."
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
#define CFG_ERROR2      "Error: Unable to resolve VM alias %s"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
#define CFG_ERROR3      "Error: %s VM not supported"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
#define CFG_ERROR4      "Error: Unable to locate JRE meeting specification \"%s\""
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
#define CFG_ERROR5      "Error: Could not determine application home."
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
#define CFG_ERROR6      "Error: could not open `%s'"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
#define CFG_ERROR7      "Error: no known VMs. (check for corrupt jvm.cfg file)"
6005
f9e6c98d4ee3 6921472: RFE: java launcher code needs clean up
ksrini
parents: 5506
diff changeset
    82
#define CFG_ERROR8      "Error: missing `%s' JVM at `%s'.\nPlease install or use the JRE or JDK that contains these missing components."
f9e6c98d4ee3 6921472: RFE: java launcher code needs clean up
ksrini
parents: 5506
diff changeset
    83
#define CFG_ERROR9      "Error: could not determine JVM type."
32267
4e96a9ee01b1 8027634: Support @argfiles for java command-line tool
henryjen
parents: 27938
diff changeset
    84
#define CFG_ERROR10     "Error: Argument file size should not be larger than %lu."
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
#define JRE_ERROR1      "Error: Could not find Java SE Runtime Environment."
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
#define JRE_ERROR2      "Error: This Java instance does not support a %d-bit JVM.\nPlease install the desired version."
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
#define JRE_ERROR3      "Error: Improper value at line %d."
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
#define JRE_ERROR4      "Error: trying to exec %s.\nCheck if file exists and permissions are set correctly."
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
#define JRE_ERROR5      "Error: Failed to start a %d-bit JVM process from a %d-bit JVM."
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
#define JRE_ERROR6      "Error: Verify all necessary Java SE components have been installed.\n(Solaris SPARC 64-bit components must be installed after 32-bit components.)"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
#define JRE_ERROR7      "Error: Either 64-bit processes are not supported by this platform\nor the 64-bit components have not been installed."
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
#define JRE_ERROR8      "Error: could not find "
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
#define JRE_ERROR9      "Error: Unable to resolve %s"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
#define JRE_ERROR10     "Error: Unable to resolve current executable"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
#define JRE_ERROR11     "Error: Path length exceeds maximum length (PATH_MAX)"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
#define JRE_ERROR12     "Error: Exec of %s failed"
12047
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 6005
diff changeset
    98
#define JRE_ERROR13     "Error: String processing operation failed"
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
27938
7f7f8bf64dd7 8058407: Remove Multiple JRE support in the Java launcher
ksrini
parents: 25859
diff changeset
   100
#define SPC_ERROR1      "Error: Specifying an alternate JDK/JRE version is no longer supported.\n  The use of the flag '-version:' is no longer valid.\n  Please download and execute the appropriate version."
7f7f8bf64dd7 8058407: Remove Multiple JRE support in the Java launcher
ksrini
parents: 25859
diff changeset
   101
#define SPC_ERROR2      "Error: Specifying an alternate JDK/JRE is no longer supported.\n  The related flags -jre-restrict-search | -jre-no-restrict-search are also no longer valid."
7f7f8bf64dd7 8058407: Remove Multiple JRE support in the Java launcher
ksrini
parents: 25859
diff changeset
   102
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
#define DLL_ERROR1      "Error: dl failure on line %d"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
#define DLL_ERROR2      "Error: failed %s, because %s"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
#define DLL_ERROR3      "Error: could not find executable %s"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
#define DLL_ERROR4      "Error: loading: %s"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
#define REG_ERROR1      "Error: opening registry key '%s'"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
#define REG_ERROR2      "Error: Failed reading value of registry key:\n\t%s\\CurrentVersion"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
#define REG_ERROR3      "Error: Registry key '%s'\\CurrentVersion'\nhas value '%s', but '%s' is required."
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
#define REG_ERROR4      "Failed reading value of registry key:\n\t%s\\%s\\JavaHome"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
#define SYS_ERROR1      "Error: CreateProcess(%s, ...) failed:"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
#define SYS_ERROR2      "Error: WaitForSingleObject() failed."
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
#endif /* _EMESSAGES_H */