6 Replies Latest reply on Dec 9, 2010 9:53 AM by elcool

    run.bat appears to do nothing

    elcool

      I had JBoss 4.2.3 installed and working, but now for some reason, when I execute "run.bat -b 0.0.0.0" it goes back to the command line without doing anything at all.

       

      I tried a fresh install on another machine, and I'm having the same problem.

       

       

      I'm looking at the %JAVA% or %JAVA_HOME% but they seem to be correct.

      Can it also be that I have several jre/jdks installed?

       

      Also, where can I see a log of what is going on when I execute the run.bat?

        • 1. Re: run.bat appears to do nothing
          jaikiran

          What's the output of

           

          echo %JAVA_HOME%

           

          elcool wrote:

           

          Also, where can I see a log of what is going on when I execute the run.bat?

          Edit the run.bat to remove to @echo off setting. Then run the bat file from the command line. It will start showing the commands being executed and the place where it fails.

          • 2. Re: run.bat appears to do nothing
            elcool

            I got it working by writing the command all on my own, like this:

             

            C:\jboss-4.2.3.GA\bin>java -Djava.library.path="D:\Program Files (x86)\IBM\FileNet\ContentEngine\verity\k2\_nti40\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;D:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;D:\Program Files\Microsoft SQL Server\100\Tools\Binn\;D:\Program Files\Microsoft SQL Server\100\DTS\Binn\;D:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;D:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\;D:\Program Files (x86)\IBM\FileNet\ContentEngine\bin;C:\jars\sqljdbc4.jar" -Dprogram.name=run.bat -Xms128m -Xmx512m -classpath "C:\jboss-4.2.3.GA\bin\run.jar" org.jboss.Main -b 0.0.0.0

            • 3. Re: run.bat appears to do nothing
              jaikiran

              That's actually not the right way to fix it But if it works for you and you are fine with that workaround, then fair enough.

              • 4. Re: run.bat appears to do nothing
                elcool

                echo %JAVA_HOME% gives me the following:

                 

                C:\Program Files\Java\jdk1.6.0_21;C:\Program Files\Java\jdk1.6.0_21\bin;C:\Program Files\Java\jre6;C:\Program Files\Java\jre6\bin;C:\Program Files\Java\jre6\lib;

                 

                These directories exist and have the java installed there.

                • 5. Re: run.bat appears to do nothing
                  peterj

                  That is an incorrect value for JAVA_HOME. Set it to this:

                   

                  C:\Program Files\Java\jdk1.6.0_21

                   

                  Note that JAVA_HOME is a single path, not a list of paths. JAVA_HOME should be set such the "%JAVA_HOME%\bin\java.exe" is valid.

                  • 6. Re: run.bat appears to do nothing
                    elcool

                    Thanks both of you,

                     

                    That did it!