Oops lcb.bat set _CLASSPATHCOMPONENT=%1 :argCheck if %2a==a goto gotAllArgs shift set _CLASSPATHCOMPONENT=%_CLASSPATHCOMPONENT% %1 goto argCheck :gotAllArgs set CLASSPATH=%_CLASSPATHCOMPONENT%;%CLASSPATH%
Larry Becker wrote: > Wait! Where is the lcp.bat file that is referenced? > > Larry > > On 9/14/07, Larry Becker <[EMAIL PROTECTED]> wrote: > >> You are definitely on the right track, but it still doesn't work. Can >> you just change the extension to .txt or something and attach it? >> >> Larry >> >> On 9/14/07, Paul Austin <[EMAIL PROTECTED]> wrote: >> >>> Larry, >>> >>> see the line with "-Djump... that should be on the previous line >>> >>> same for -plug-in-directory >>> >>> Paul >>> >>> Paul Austin wrote: >>> >>>> The following is an improved windows bat file that allows the >>>> application to be run from any directory and also dynamically loads all >>>> zip,jar libraries in the lib (not ext) folder. >>>> >>>> I'd also like to make it have user based coinfiguration as per my unix >>>> script. >>>> >>>> Any objections to checking this in? >>>> >>>> Paul >>>> >>>> @echo off >>>> set OLD_DIR=%CD% >>>> set JUMP_HOME=%~dp0..% >>>> set JAVA_OPTS=-Xms256M -Xmx256M -Dlog4j.configuration=file:bin\log4j.xml >>>> "-Djump.home=%JUMP_HOME%" >>>> >>>> cd %JUMP_HOME% >>>> set LIB=lib >>>> >>>> set CLASSPATH=. >>>> set CLASSPATH=conf;%CLASSPATH% >>>> set CLASSPATH=lib\ext;%CLASSPATH% >>>> >>>> for %%i in ("lib\*.jar") do call "%JUMP_HOME%\bin\lcp.bat" %%i >>>> for %%i in ("lib\*.zip") do call "%JUMP_HOME%\bin\lcp.bat" %%i >>>> >>>> set PATH=%PATH%;%LIB%\ext >>>> >>>> set JUMP_OPTS=-properties bin\workbench-properties.xml >>>> -plug-in-directory "%LIB%\ext" >>>> start javaw -cp "%CLASSPATH%" %JAVA_OPTS% >>>> com.vividsolutions.jump.workbench.JUMPWorkbench %JUMP_OPTS% >>>> >>>> cd %OLD_DIR% >>>> >>>> >>>> ------------------------------------------------------------------------- >>>> This SF.net email is sponsored by: Microsoft >>>> Defy all challenges. Microsoft(R) Visual Studio 2005. >>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>>> _______________________________________________ >>>> Jump-pilot-devel mailing list >>>> Jump-pilot-devel@lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel >>>> >>>> >>> ------------------------------------------------------------------------- >>> This SF.net email is sponsored by: Microsoft >>> Defy all challenges. Microsoft(R) Visual Studio 2005. >>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>> _______________________________________________ >>> Jump-pilot-devel mailing list >>> Jump-pilot-devel@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel >>> >>> >> -- >> http://amusingprogrammer.blogspot.com/ >> >> > > > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel