How to solve "\Java\jdk1.7.0_45' was unexpected at this time." while starting jboss-eap-6.2

来源:互联网 发布:法语考研方向知乎 编辑:程序博客网 时间:2024/06/06 18:05

Solution is very simple, just replaced a snip of code in standlone.bat

if "x%JAVA_HOME%" == "x" (  set  JAVA=java  echo JAVA_HOME is not set. Unexpected results may occur.  echo Set JAVA_HOME to the directory of your local JDK to avoid this message.) else (  if not exist "%JAVA_HOME%" (    echo Here ----------------------------------> note this line !!    echo JAVA_HOME '%JAVA_HOME%' path doesn't exist    goto END  ) else (    echo Setting JAVA property to '%JAVA_HOME%\bin\java'    set "JAVA=%JAVA_HOME%\bin\java"  ))

Replaced by the following code


if "x%JAVA_HOME%" == "x" (  set  JAVA=java  echo JAVA_HOME is not set. Unexpected results may occur.  echo Set JAVA_HOME to the directory of your local JDK to avoid this message.) else (  if not exist "%JAVA_HOME%" (    echo Here ---------------------------------- note this line !!    echo JAVA_HOME "%JAVA_HOME%" path doesn't exist    goto END  ) else (    echo Setting JAVA property to "%JAVA_HOME%\bin\java"    set "JAVA=%JAVA_HOME%\bin\java"  ))


0 0