What's the output of
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.
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
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.
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.
That is an incorrect value for JAVA_HOME. Set it to this:
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.
Thanks both of you,
That did it!