Skip to content

Commit 559eaa2

Browse files
authored
Fix error message for java home missing (#174)
* Fix error message for java home missing * match text to other shell scripts for JAVA_HOME
1 parent 35c2c12 commit 559eaa2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

imagetool/src/main/bin/imagetool.cmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
@rem Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
77

88
IF "%JAVA_HOME%" == "" (
9-
ECHO JAVA_HOME not set. Please set JAVA_HOME to jdk home. OpenJDK is not supported.
9+
ECHO Please set the JAVA_HOME environment variable to match the location of your Java installation. Java 8 or newer is required.
1010
EXIT /B 2
1111
)
1212
FOR %%i IN ("%JAVA_HOME%") DO SET JAVA_HOME=%%~fsi
@@ -18,4 +18,4 @@ IF EXIST %JAVA_HOME%\bin\java.exe (
1818
EXIT /B 2
1919
)
2020
SET IMAGETOOL_HOME=%~dp0%/..
21-
%JAVA_HOME%\bin\java -cp %IMAGETOOL_HOME%\lib\* -Djava.util.logging.config.file=%IMAGETOOL_HOME%\bin\logging.properties com.oracle.weblogic.imagetool.cli.ImageTool %*
21+
%JAVA_HOME%\bin\java -cp %IMAGETOOL_HOME%\lib\* -Djava.util.logging.config.file=%IMAGETOOL_HOME%\bin\logging.properties com.oracle.weblogic.imagetool.cli.ImageTool %*

0 commit comments

Comments
 (0)