@echo off REM This is just the coolest! %~dp0 is called a "batch parameter modifier" REM and it is the full path of the directory where this batch files is located. REM Doesn't work on windows 98 and earlier. FOR /F "usebackq delims==" %%i IN (`java -classpath "%~dp0\..\lib\cipres\cipresapp-1.0.1.jar" org.cipres.jni.JavaLibPath`) DO SET JAVA_LIB_PATH="%~dp0\..\lib\cipres:%%i" # fixedPort property is for old style registry - it will run on the port specified by # cipres.registry.ior. W/o this property it is a per-user registry and writes its ior # to a file in the ports directory. java -Djava.library.path="%JAVA_LIB_PATH%" -DfixedPort=1 -ea -classpath %~dp0\..\lib\cipres\cipres-classpath.jar org.cipres.registry.RegistryApp