Improve documentation for creating the eclipse workspace
This commit is contained in:
Vendored
+7
-7
@@ -17,30 +17,30 @@ set APP_BASE_NAME=%~n0
|
||||
set APP_HOME=%DIRNAME%
|
||||
|
||||
@rem Find java.exe
|
||||
if defined JAVA_8_HOME goto findJavaFromJavaHome
|
||||
if defined JAVA_MC_HOME goto findJavaFromJavaHome
|
||||
|
||||
set JAVA_EXE=java.exe
|
||||
%JAVA_EXE% -version >NUL 2>&1
|
||||
if "%ERRORLEVEL%" == "0" goto init
|
||||
|
||||
echo.
|
||||
echo ERROR: JAVA_8_HOME is not set and no 'java' command could be found in your PATH.
|
||||
echo ERROR: JAVA_MC_HOME is not set and no 'java' command could be found in your PATH.
|
||||
echo.
|
||||
echo Please set the JAVA_8_HOME variable in your environment to match the
|
||||
echo Please set the JAVA_MC_HOME variable in your environment to match the
|
||||
echo location of your Java installation.
|
||||
|
||||
goto fail
|
||||
|
||||
:findJavaFromJavaHome
|
||||
set JAVA_8_HOME=%JAVA_8_HOME:"=%
|
||||
set JAVA_EXE=%JAVA_8_HOME%/bin/java.exe
|
||||
set JAVA_MC_HOME=%JAVA_MC_HOME:"=%
|
||||
set JAVA_EXE=%JAVA_MC_HOME%/bin/java.exe
|
||||
|
||||
if exist "%JAVA_EXE%" goto init
|
||||
|
||||
echo.
|
||||
echo ERROR: JAVA_8_HOME is set to an invalid directory: %JAVA_8_HOME%
|
||||
echo ERROR: JAVA_MC_HOME is set to an invalid directory: %JAVA_MC_HOME%
|
||||
echo.
|
||||
echo Please set the JAVA_8_HOME variable in your environment to match the
|
||||
echo Please set the JAVA_MC_HOME variable in your environment to match the
|
||||
echo location of your Java installation.
|
||||
|
||||
goto fail
|
||||
|
||||
Reference in New Issue
Block a user