Thank you Peter.
Here is what I got commenting out the Echo as you suggested:
C:\>rem @echo off
C:\>rem ------------------------------------------------------------------------
-
C:\>rem JBoss Bootstrap Script for Win32
C:\>rem ------------------------------------------------------------------------
-
C:\>rem $Id: run.bat 63249 2007-05-30 13:20:25Z
dimitris@jboss.org $
C:\>set DIRNAME=.\
C:\>if "Windows_NT" == "Windows_NT" set DIRNAME=C:\jboss-4.2.2.GA\bin\
C:\>set PROGNAME=run.bat
C:\>if "Windows_NT" == "Windows_NT" set PROGNAME=run.bat
C:\>pushd C:\jboss-4.2.2.GA\bin\..
C:\jboss-4.2.2.GA>set JBOSS_HOME=C:\jboss-4.2.2.GA
C:\jboss-4.2.2.GA>popd
C:\>REM Add bin/native to the PATH if present
C:\>if exist "C:\jboss-4.2.2.GA\bin\native" set PATH=C:\jboss-4.2.2.GA\bin\nativ
e;C:\oracle\product\10.2.0\client_1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOW
S\System32\Wbem;C:\WINDOWS\system32\nls;C:\WINDOWS\system32\nls\ENGLISH;C:\Progr
am Files\Java\jdk1.5.0_15\jre\bin;C:\Program Files\QuickTime\QTSystem\;C:\Progra
m Files\Rational\common;C:\Program Files\Rational\ClearCase\bin;c:\orawin95\bin;
C:\Novell\Client32;C:\WINDOWS;C:\WINDOWS\COMMAND;C:\ORAWIN\BIN;C:\ORAWIN95\BIN
C:\>if exist "C:\jboss-4.2.2.GA\bin\native" set JAVA_OPTS= -Djava.library.path="
C:\oracle\product\10.2.0\client_1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\
System32\Wbem;C:\WINDOWS\system32\nls;C:\WINDOWS\system32\nls\ENGLISH;C:\Program
Files\Java\jdk1.5.0_15\jre\bin;C:\Program Files\QuickTime\QTSystem\;C:\Program
Files\Rational\common;C:\Program Files\Rational\ClearCase\bin;c:\orawin95\bin;C:
\Novell\Client32;C:\WINDOWS;C:\WINDOWS\COMMAND;C:\ORAWIN\BIN;C:\ORAWIN95\BIN"
C:\>rem Read all command line arguments
C:\>REM
C:\>REM The env variable commented out in favor of using to include
C:\>REM all args in java command line. See bug #840239. [jpl]
C:\>REM
C:\>REM set ARGS=
C:\>REM :loop
C:\>REM if [] == [] goto endloop
C:\>REM set ARGS=
C:\>REM shift
C:\>REM goto loop
C:\>REM :endloop
C:\>rem Find run.jar, or we can't continue
C:\>set RUNJAR=C:\jboss-4.2.2.GA\bin\run.jar
C:\>if exist "C:\jboss-4.2.2.GA\bin\run.jar" goto FOUND_RUN_JAR
C:\>if not "C:\Program Files\Java\jdk1.5.0_15" == "" goto ADD_TOOLS
C:\>set JAVA=C:\Program Files\Java\jdk1.5.0_15\bin\java
C:\>rem A full JDK with toos.jar is not required anymore since jboss web package
s
C:\>rem the eclipse jdt compiler and javassist has its own internal compiler.
C:\>if not exist "C:\Program Files\Java\jdk1.5.0_15\lib\tools.jar" goto SKIP_TOO
LS
C:\>rem If JBOSS_CLASSPATH or JAVAC_JAR is empty, don't include it, as this will
C:\>rem result in including the local directory in the classpath, which makes
C:\>rem error tracking harder.
C:\>if not "" == "" set RUNJAR=;C:\jboss-4.2.2.GA\bin\run.jar
C:\>if "" == "" set RUN_CLASSPATH=C:\jboss-4.2.2.GA\bin\run.jar
C:\>if "C:\jboss-4.2.2.GA\bin\run.jar" == "" set RUN_CLASSPATH=;C:\jboss-4.2.2.G
A\bin\run.jar
C:\>set JBOSS_CLASSPATH=C:\jboss-4.2.2.GA\bin\run.jar
C:\>rem Setup JBoss specific properties
C:\>set JAVA_OPTS= -Dprogram.name=run.bat
C:\>rem Add -server to the JVM options, if supported
C:\>"C:\Program Files\Java\jdk1.5.0_15\bin\java" -version 2>&1 | findstr /I h
otspot 1>nul
--------------------------------------------------------------
As for the rest:
I get no error messages to work off or print here, the window just shuts down as fast as it opens.
It does the same if I run it through the command window
I am not sure how to follow the "findstr," but I did check and findstr is in my windows/system32 folder.
The code in the bat file seems right:
rem Add -server to the JVM options, if supported
"%JAVA%" -version 2>&1 | findstr /I hotspot > nul
if not errorlevel == 1 (set JAVA_OPTS=%JAVA_OPTS% -server)
Thanks for your time and help and Merry Christmas.