Assumes sts.bat
is in the same folder as sts.exe
. Also assumes that _JAVA_OPTIONS
is recognised by the JRE that will be used (e.g. works for Oracle JDK 1.7.0_55, not sure about other versions/vendors).
setlocal
set _java_options=-Duser.home=%USERPROFILE%
%~dp0sts.exe
endlocal