@echo off
set OLD_DIR=%CD%
set JUMP_HOME=%~dp0..%
set JAVA_OPTS=-Xms256M -Xmx256M "-Djump.home=%JUMP_HOME%" "-Dlog4j.configuration=file:%JUMP_HOME%\bin\log4j.xml"
cd %JUMP_HOME%
set LIB=lib

set CLASSPATH=.;bin
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=-default-plugins bin\default-plugins.xml -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%
