REM STEP 1 - Initial setup REM @echo off if "%OS%"=="Windows_NT" @setlocal REM STEP 2 - Check we know where we are installed set DEFAULT_JSWORD=%~dp0 if "%JSWORD%"=="" set JSWORD=%DEFAULT_JSWORD% set DEFAULT_JSWORD= if exist "%JSWORD%" goto DoneFindJSword REM have a blind guess ... if not exist "C:\Progra~1\JSword" goto FailedFindJSword set JSWORD=C:\Progra~1\JSword :DoneFindJSword echo "Using JSWORD=%JSWORD%" REM STEP 3 - Setup the classpath set LOCALCLASSPATH=%CLASSPATH% for %%i in ("%JSWORD%\*.jar") do call "%JSWORD%\lcp.bat" %%i REM STEP 4 - Run JSword REM -Xmx256M REM "-Djava.endorsed.dirs=%JSWORD%\lib" REM -classpath "%JSWORD%\resource" "%JAVA_HOME%\bin\java.exe" -classpath "%LOCALCLASSPATH%" org.crosswire.bibledesktop.desktop.Desktop goto End :FailedFindJSword echo "Can't find install directory. Please use C:\Progra~1\JSword or set the JSWORD variable" :End set LOCALCLASSPATH= set _JAVACMD= if "%OS%"=="Windows_NT" @endlocal