"jackhexy" wrote : Thank you.I executed "echo %JAVA_HOME",The message is "C:\OtherSoft\Java\jdk1.6.0_03".
At this point everything looks ok to me, assuming that C:\OtherSoft\Java\jdk1.6.0_03 is the folder where Java is installed. When you get this error what else do you see on the console? Do you see something like: | | =============================================================================== | | JBoss Bootstrap Environment | | JBOSS_HOME: D:\JBoss4.2.1\jboss-4.2.1.GA | | JAVA: c:\jdk1.5.0_07\bin\java | | JAVA_OPTS: -Dprogram.name=run.bat -server -Xms128m -Xmx512m -Dsun.rmi.dgc.cli | ent.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 | | CLASSPATH: c:\jdk1.5.0_07\lib\tools.jar;D:\JBoss4.2.1\jboss-4.2.1.GA\bin\run.j | ar | | =============================================================================== If you see such logs or any other logs along with this exception can you post all that here? Hopefully these messages are in english, i don't understand chinese :-) Also, could you try the following from the command prompt: - First set JAVA_HOME to C:\OtherSoft\Java\jdk1.6.0_03 set JAVA_HOME=C:\OtherSoft\Java\jdk1.6.0_03 - Then set JAVA as follows: set JAVA=%JAVA_HOME%\bin\java - Then run the following command "%JAVA%" -version Post the output of this command here. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104556#4104556 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104556 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user