0 Replies Latest reply on Dec 29, 2015 4:04 PM by Allen Porter

    .bat File Does Not Launch JBoss - Opens and Closes Immediately

    Allen Porter Newbie

      I’m running ColdFusion 9 on JBoss server 5.0.1 GA. I’ve run it successfully and used the web server on my other install, but my new machine will not run it. The run.bat file opens and closes rapidly, but the server is not launched. After setting up some ECHO and PAUSE commands, it appears the issue is occurring when the .bat runs this part:

      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"


      Since I've recently changed machines, the issue could be related to something else, not the specific command above. Can somebody help me figure out what is causing this? I'd REALLY appreciate it...


      I just ran this line:

      echo %JAVA_HOME%


      in a test batch script and the result was:

      C:\Program Files (x86)\Java\jdk1.6.0_26\;C:\Program Files\Java\jdk1.7.0_45\


      Could this be the issue? I would think there would be just one path and no semicolon...