在Jboss的bin目录下找到standalone.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 (
?? set "JAVA=%JBOSS_HOME%\Java\jdk1.7.0_51\bin\java"
)
红色字部分是指JDK路径位置,修改该路径即可。
原文:http://daffy.iteye.com/blog/2241928