Details
-
Bug
-
Resolution: Fixed
-
Blocker
-
6.2-rc-1
-
Unknown
-
N/A
-
N/A
-
Description
This is a regression introduced by XWIKI-10810
This is what I get:
Starting Jetty on port 8080, please wait... '"java"' is not recognized as an internal or external command, operable program or batch file. Press any key to continue . . .
Now if change from:
if not "%JAVA_HOME%" == "" ( set JAVA_PATH=%JAVA_HOME\bin:java.exe ) else ( for /f tokens^=2^ delims^=^" %%i in ('reg query HKEY_CLASSES_ROOT\jarfile\shell\open\command /ve') do set JAVAW_PATH=%%i set JAVA_PATH=%JAVAW_PATH:\javaw.exe=%\java.exe if "%JAVA_PATH%"=="" set JAVA_PATH=java )
to
for /f tokens^=2^ delims^=^" %%i in ('reg query HKEY_CLASSES_ROOT\jarfile\shell\open\command /ve') do set JAVAW_PATH=%%i set JAVA_PATH=%JAVAW_PATH:\javaw.exe=%\java.exe if "%JAVA_PATH%"=="" set JAVA_PATH=java
then it works...
Note that on my system JAVA_HOME is not defined.
Attachments
Issue Links
- is related to
-
XWIKI-10810 Use JAVA_HOME if the user has set it instead of searching in the registry
- Closed
- relates to
-
XE-1488 How to start XWiki
- Closed