@echo off
echo PMS for REGZA
echo ------------------------------------------------
echo In case of troubles with PMS.exe, this shell will launch PMS for REGZA in a more old fashioned way
echo You can try to reduce the Xmx parameter value if you keep getting "Cannot create Java virtual machine" errors...
echo Last word: You must have java installed ! http://www.java.com
echo ------------------------------------------------
pause

rem -----------------------------------------------------------------
rem Standard way (for Foreground kick)
rem -----------------------------------------------------------------
rem start javaw -Xmx768M -Djava.net.preferIPv4Stack=true -Dfile.encoding=UTF-8 -classpath update.jar;pms.jar net.pms.PMS

rem -----------------------------------------------------------------
rem Backgroud kick params by wrapper.exe, as a Windows Service 
rem -----------------------------------------------------------------
rem start java ^
rem -Djava.library.path="win32/service/" -classpath "win32/service/wrapper.jar;pms.jar" ^
rem -Dwrapper.key="hoYE7t5GXuc72Va9" -Dwrapper.port=32000 -Dwrapper.jvm.port.min=31000 ^
rem -Dwrapper.jvm.port.max=31999 -Dwrapper.pid=1156 -Dwrapper.version="3.5.9" ^
rem -Dwrapper.native_library="wrapper" -Dwrapper.service="TRUE" -Dwrapper.cpu.timeout="10" ^
rem -Dwrapper.jvmid=1 org.tanukisoftware.wrapper.WrapperSimpleApp net.pms.PMS

rem -----------------------------------------------------------------
rem Backgroud kick like
rem -----------------------------------------------------------------
start java -Xmx768M -Djava.net.preferIPv4Stack=true -Dfile.encoding=UTF-8 -classpath update.jar;pms.jar net.pms.PMS

