-
1. Re: Why I can't start JBOSS 4.2.2GA?
jaikiran Nov 13, 2007 11:23 AM (in response to jackhexy)When I excute run.bat,DOS prompt "System can't find the specified file."(I translated the information to english) and start unsuccessfully.
Did you mean, you get'findstr' is not recognized as an internal or external command, operable program or batch file.
Have a look at
http://wiki.jboss.org/wiki/Wiki.jsp?page=FindstrCommandNotFound for details.My developing enviroment is windows 2000 server(chinese version),jdk 1.6.0_03-b05,JBOSS 4.2.2GA
JDK6 isnt yet supported. Use Java5. -
2. Re: Why I can't start JBOSS 4.2.2GA?
jackhexy Nov 13, 2007 11:26 AM (in response to jackhexy)Sorry,I make a mistake.It's "execute" not "excute".
-
3. Re: Why I can't start JBOSS 4.2.2GA?
jackhexy Nov 13, 2007 11:30 AM (in response to jackhexy)Think you .
I got the message "system can't find the specified file",not " findstr...". -
4. Re: Why I can't start JBOSS 4.2.2GA?
jackhexy Nov 13, 2007 11:36 AM (in response to jackhexy)The message is "系统找�到指定的文件".I translated it to english that System can't find the specified file.
-
5. Re: Why I can't start JBOSS 4.2.2GA?
jackhexy Nov 13, 2007 11:37 AM (in response to jackhexy)Sorry.It's chinese message.The page can't display.
-
6. Re: Why I can't start JBOSS 4.2.2GA?
jaikiran Nov 14, 2007 12:11 AM (in response to jackhexy)When you see this error, can you post the exact output of the following command
echo %JAVA_HOME%
Run this from the command prompt and post the output here. -
7. Re: Why I can't start JBOSS 4.2.2GA?
jackhexy Nov 14, 2007 7:23 AM (in response to jackhexy)Thank you.I executed "echo %JAVA_HOME",The message is "C:\OtherSoft\Java\jdk1.6.0_03".
-
8. Re: Why I can't start JBOSS 4.2.2GA?
jackhexy Nov 14, 2007 7:26 AM (in response to jackhexy)Now,my time is Wed Nov 14,20:23.:-)
-
9. Re: Why I can't start JBOSS 4.2.2GA?
jaikiran Nov 14, 2007 8:24 AM (in response to jackhexy)"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_03set 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. -
10. Re: Why I can't start JBOSS 4.2.2GA?
jackhexy Nov 14, 2007 9:34 AM (in response to jackhexy)If I didn't take out the configuration #"%JAVA%" -version 2>&1 | findstr /I hotspot > nul
if not errorlevel == 1 (set JAVA_OPTS=%JAVA_OPTS% -server)# in run.bat,I only could see the information "system don't find the sepcified file." and JBOSS AS couldn't start when I executed run.bat.
When I took out the configuratin above,JBOSS AS started successfully,DOS prompted enviument information and other.
I did as you prompted,the message is "java version "1.6.0_03"
Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode, sharing)".
Thank you. -
11. Re: Why I can't start JBOSS 4.2.2GA?
jackhexy Nov 14, 2007 9:44 AM (in response to jackhexy)Sorry,It's "specified" "configuration" not "sepcified" "configuratin".
-
12. Re: Why I can't start JBOSS 4.2.2GA?
jackhexy Nov 14, 2007 9:46 AM (in response to jackhexy)If I only executed ""%JAVA%" -version 2>&1 | findstr /I hotspot > nul" that in run.bat ,DOS prompted "system can't find the specified file" as above.
So,I think that there are problems in this place.
What about you? -
13. Re: Why I can't start JBOSS 4.2.2GA?
jackhexy Nov 14, 2007 9:49 AM (in response to jackhexy)Only execute "if not errorlevel == 1 (set JAVA_OPTS=%JAVA_OPTS% -server)" in DOS is ok.
-
14. Re: Why I can't start JBOSS 4.2.2GA?
jackhexy Nov 14, 2007 9:54 AM (in response to jackhexy)"%JAVA%" -version 2>&1 | findstr /I hotspot > nul.
What is the meaning?Compare the java version?:-)
You know?