[jboss-user] [JBoss Getting Started Documentation] - Re: newbie - JBoss

velasquez do-not-reply at jboss.com
Thu Sep 11 18:19:35 EDT 2008


"PeterJ" wrote : If, when you enter the 'run' command, you get no output and it just goes back to the command line, edit the run.bat file, commenting out the "@echo off" line and try it again - post that output.


Hi Peter,

Please find the output.

C:\jboss-4.2.2\bin>rem JBoss Bootstrap Script for Win32

C:\jboss-4.2.2\bin>rem ---------------------------------------------------------
----------------

C:\jboss-4.2.2\bin>rem $Id: run.bat 63249 2007-05-30 13:20:25Z dimitris at jboss.or
g $

C:\jboss-4.2.2\bin>set DIRNAME=.\

C:\jboss-4.2.2\bin>if "Windows_NT" == "Windows_NT" set DIRNAME=C:\jboss-4.2.2\bi
n\

C:\jboss-4.2.2\bin>set PROGNAME=run.bat

C:\jboss-4.2.2\bin>if "Windows_NT" == "Windows_NT" set PROGNAME=run.bat

C:\jboss-4.2.2\bin>pushd C:\jboss-4.2.2\bin\..

C:\jboss-4.2.2>set JBOSS_HOME=C:\jboss-4.2.2

C:\jboss-4.2.2>popd

C:\jboss-4.2.2\bin>REM Add bin/native to the PATH if present

C:\jboss-4.2.2\bin>if exist "C:\jboss-4.2.2\bin\native" set PATH=C:\jboss-4.2.2\
bin\native;C:\GTK\bin;c:\ruby\bin;C:\Oracle\bin;.;C:\Program Files\Java\jdk1.6.0
_07\bin;C:\Softwares\Ant\apache-ant-1.7.1-bin\apache-ant-1.7.1\bin;C:\Program Fi
les\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Microsoft SQL Server\90
\DTS\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files
\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Micros
oft Visual Studio 8\Common7\IDE\PrivateAssemblies\

C:\jboss-4.2.2\bin>if exist "C:\jboss-4.2.2\bin\native" set JAVA_OPTS= -Djava.li
brary.path="C:\GTK\bin;c:\ruby\bin;C:\Oracle\bin;.;C:\Program Files\Java\jdk1.6.
0_07\bin;C:\Softwares\Ant\apache-ant-1.7.1-bin\apache-ant-1.7.1\bin;C:\Program F
iles\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Microsoft SQL Server\9
0\DTS\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program File
s\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Micro
soft Visual Studio 8\Common7\IDE\PrivateAssemblies\"

C:\jboss-4.2.2\bin>rem Read all command line arguments

C:\jboss-4.2.2\bin>REM

C:\jboss-4.2.2\bin>REM The  env variable commented out in favor of using  to inc
lude

C:\jboss-4.2.2\bin>REM all args in java command line. See bug #840239. [jpl]

C:\jboss-4.2.2\bin>REM

C:\jboss-4.2.2\bin>REM set ARGS=

C:\jboss-4.2.2\bin>REM :loop

C:\jboss-4.2.2\bin>REM if [] == [] goto endloop

C:\jboss-4.2.2\bin>REM         set ARGS=

C:\jboss-4.2.2\bin>REM         shift

C:\jboss-4.2.2\bin>REM         goto loop

C:\jboss-4.2.2\bin>REM :endloop

C:\jboss-4.2.2\bin>rem Find run.jar, or we can't continue

C:\jboss-4.2.2\bin>set RUNJAR=C:\jboss-4.2.2\bin\run.jar

C:\jboss-4.2.2\bin>if exist "C:\jboss-4.2.2\bin\run.jar" goto FOUND_RUN_JAR

C:\jboss-4.2.2\bin>if not "C:\Program Files\Java\jdk1.6.0_07" == "" goto ADD_TOO
LS

C:\jboss-4.2.2\bin>set JAVA=C:\Program Files\Java\jdk1.6.0_07\bin\java

C:\jboss-4.2.2\bin>rem A full JDK with toos.jar is not required anymore since jb
oss web packages

C:\jboss-4.2.2\bin>rem the eclipse jdt compiler and javassist has its own intern
al compiler.

C:\jboss-4.2.2\bin>if not exist "C:\Program Files\Java\jdk1.6.0_07\lib\tools.jar
" goto SKIP_TOOLS

C:\jboss-4.2.2\bin>rem If exists, point to the JDK javac compiler in case the us
er wants to

C:\jboss-4.2.2\bin>rem later override the eclipse jdt compiler for compiling JSP
 pages.

C:\jboss-4.2.2\bin>set JAVAC_JAR=C:\Program Files\Java\jdk1.6.0_07\lib\tools.jar


C:\jboss-4.2.2\bin>rem If JBOSS_CLASSPATH or JAVAC_JAR is empty, don't include i
t, as this will

C:\jboss-4.2.2\bin>rem result in including the local directory in the classpath,
 which makes

C:\jboss-4.2.2\bin>rem error tracking harder.

C:\jboss-4.2.2\bin>if not "C:\Program Files\Java\jdk1.6.0_07\lib\tools.jar" == "
" set RUNJAR=C:\Program Files\Java\jdk1.6.0_07\lib\tools.jar;C:\jboss-4.2.2\bin\
run.jar

C:\jboss-4.2.2\bin>if "" == "" set RUN_CLASSPATH=C:\Program Files\Java\jdk1.6.0_
07\lib\tools.jar;C:\jboss-4.2.2\bin\run.jar

C:\jboss-4.2.2\bin>if "C:\Program Files\Java\jdk1.6.0_07\lib\tools.jar;C:\jboss-
4.2.2\bin\run.jar" == "" set RUN_CLASSPATH=;C:\Program Files\Java\jdk1.6.0_07\li
b\tools.jar;C:\jboss-4.2.2\bin\run.jar

C:\jboss-4.2.2\bin>set JBOSS_CLASSPATH=C:\Program Files\Java\jdk1.6.0_07\lib\too
ls.jar;C:\jboss-4.2.2\bin\run.jar

C:\jboss-4.2.2\bin>rem Setup JBoss specific properties

C:\jboss-4.2.2\bin>set JAVA_OPTS= -Dprogram.name=run.bat

C:\jboss-4.2.2\bin>rem Add -server to the JVM options, if supported

C:\jboss-4.2.2\bin>"C:\Program Files\Java\jdk1.6.0_07\bin\java" -version   2>&1
 | findstr /I hotspot  1>nul
'findstr' is not recognized as an internal or external command,
operable program or batch file.

C:\jboss-4.2.2\bin>

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4175993#4175993

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4175993



More information about the jboss-user mailing list