H
HS1
Hello
To install a java application, I have to run a run.bat file. When I run,
there is a message in Dos window
"JAVA_HOME is not set.
Set JAVA_HOME to the directory of your local JDK to avoid this message."
I check this run.bat file and found that there is the below code in this
file
----------------------------------
:FOUND_RUN_JAR
if not "%JAVA_HOME%" == "" goto ADD_APPLICATIONS
set JAVA=java
echo JAVA_HOME is not set.
echo Set JAVA_HOME to the directory of your local JDK to avoid this message.
goto SKIP_TOOLS
:ADD_APPLICATIONS
set JAVA=%JAVA_HOME%\bin\java
if exist "%JAVA_HOME%\lib\tools.jar" goto SKIP_TOOLS
echo Could not locate %JAVA_HOME%\lib\tools.jar. Unexpected results may
occur.
echo Make sure that JAVA_HOME points to a JDK.
To install a java application, I have to run a run.bat file. When I run,
there is a message in Dos window
"JAVA_HOME is not set.
Set JAVA_HOME to the directory of your local JDK to avoid this message."
I check this run.bat file and found that there is the below code in this
file
----------------------------------
:FOUND_RUN_JAR
if not "%JAVA_HOME%" == "" goto ADD_APPLICATIONS
set JAVA=java
echo JAVA_HOME is not set.
echo Set JAVA_HOME to the directory of your local JDK to avoid this message.
goto SKIP_TOOLS
:ADD_APPLICATIONS
set JAVA=%JAVA_HOME%\bin\java
if exist "%JAVA_HOME%\lib\tools.jar" goto SKIP_TOOLS
echo Could not locate %JAVA_HOME%\lib\tools.jar. Unexpected results may
occur.
echo Make sure that JAVA_HOME points to a JDK.