-
1. run-client.bat
rockinryan Aug 30, 2002 3:24 PM (in response to rockinryan)I have one other related question-
In the run-client.bat file that is generated when building the template example, does anyone know what the lines i bold are supposed to be including? (The italics show the "jre" that is being appended to my JAVA_HOME)
@echo off
set LCP=.
REM Default locations of jars we depend on
REM - RockinRyan - I had to modify this due to the space in "Program Files"
REM - for %%i in (C:\Program Files\jboss-3.0.0_tomcat-4.0.3\client\*.jar) do call lcp.bat %%i
for %%i in ("C:\Program Files\jboss-3.0.0_tomcat-4.0.3\client\*.jar") do set LCP=%LCP%;%%i
for %%i in (..\..\lib\*.jar) do call lcp.bat %%i
for %%i in (..\client\*.jar) do call lcp.bat %%i
REM This automatically adds system classes to CLASSPATH
if exist C:\DevTools\jdk1.3.1_04\jre\lib\tools.jar set LCP=%LCP%;C:\DevTools\jdk1.3.1_04\jre\lib\tools.jar
echo C:\DevTools\jdk1.3.1_04\jre\bin\java.exe -classpath "%LCP%" test.client.TestClient
C:\DevTools\jdk1.3.1_04\jre\bin\java.exe -classpath "%LCP%" test.client.TestClient
I expect that I will just have to modify this file's bolded and italic'd lines to make it all work. Once you people clue me in as to what the bold lines are supposed to do. Thanks again,
Ryan -
2. Re: run-client.bat - update
rockinryan Aug 30, 2002 5:42 PM (in response to rockinryan)Okay, I still can't get the \jre to stay out of my JAVA_HOME path, which is annoying but I can manually override it. I decided to move my JBoss installation out of "Program Files" because the imbedded spaces definitely cause trouble. The workaround that I added to run-client was NOT sufficient - it does include the full path but it only picked up one jar file rather than looping.
I still do not know what for %%i in (..\..\lib\*.jar) do call lcp.bat %%i is supposed to do, but the example and JBoss are working.