1 Reply Latest reply on Mar 15, 2013 12:23 PM by Wolf-Dieter Fink

    Help! Jboss won't start

    Alessandro Socci Newbie

      Hello, I have a problem:


      when I launch run.bat, it stops at this string:


      rem Add -server to the JVM options, if supported

      "%JAVA%" -server -version 2>&1 | findstr /I hotspot > nul

      if not errorlevel == 1 (set JAVA_OPTS=%JAVA_OPTS% -server)


      I have tried to REM this, except fot the "set JAVA_OPTS=%JAVA_OPTS% -server" part


      it goes on, until here:


      D:\jboss-4.2.3.GA\bin>"C:\Program Files\Java\jre6\bin\java"  -Dprogram.name=run.

      bat -server -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.

      dgc.server.gcInterval=3600000    -Djava.endorsed.dirs="D:\jboss-4.2.3.GA\lib\end

      orsed"    -classpath "D:\jboss-4.2.3.GA\bin\run.jar"    org.jboss.Main

      ""C:\Program Files\Java\jre6\bin\java"" non è riconosciuto come comando interno

      o esterno,

      un programma eseguibile o un file batch.


      it says that C:\Program Files\Java\jre6\bin\java is not recognized as a command


      I have installed  the jre7, and when I put jre7 instead of jre6 in the path, it says this:

      Error: missing `server' JVM at `C:\Program Files\Java\jre7\bin\server\jvm.dll'.

      Please install or use the JRE or JDK that contains these missing components.


      don't know what to do, I'm not a jboss expert



        • 1. Re: Help! Jboss won't start
          Wolf-Dieter Fink Master

          Hello Alessandro,

          welcome to the forum.


          You should use directories where Java and JBoss are installed without having a " " in the path. The scripts are sometimes not tolerant with that.

          A simple test might be to copy the complete "C:\Program Files\Java\jre6\bin\java" into "C:\Java6" and "set JAVA_HOME=c:\Java6" before you start JBoss