REM this bat file use the HXTT DBF Package for example; if you use other HXTT Package,please modify the file REM -install servicename ;The name of the service;in default,the servicename is HXTTService REM jvm.dll ;The location of the JVM DLL used to run the service,please assign the absolute path REM -Djava.classpath.path ;the java classpath,attention,you should assign the tools.jar path REM ;here we used the DBF_JDBC30.jar,you can use other HXTT Package. REM -Dhxtt.urlconfig ;the hxtt service config file;it is a simple property file,which assign the HXTT Server url and port; REM -Dhxtt.daemonport ;the listening port of daemon service REM -Dhxtt.daemonpassword ;the password for remote control REM ;this file is produced by com.hxtt.sql.Admin; REM -Xms16M ;set the original java Heap size REM -Xmx32M ;set the maxium java Heap size REM -start com.hxtt.sql.admin.HxttService ;set the class to load when starting the service;don't change it REM -stop com.hxtt.sql.admin.HxttService ;set the class to load when stopping the service;dnn't change it REM -method stop ;set method to call in the stop_class. don't change it REM -out c:\out.log ;set the file to redirect System.out into; REM -err c:\err.log ;set the file to redirect System.err into; REM auto / manual ;Startup the service to automatic or manual mod; REM -startup seconds ;Java method processing time (startup:sleep, shutdown:timeout) REM you can run javaservice.exe -help for full command explain. REM more detail infomation ,please see http://javaservice.objectweb.org/ REM If your path contains a space or more spaces, for example, C:\Program Files\Java\j2re1.4.1_01\bin\client\jvm.dll REM please wrap it with double quotation marks, for example, "C:\Program Files\Java\j2re1.4.1_01\bin\client\jvm.dll" REM or "%JAVA_HOME%\bin\client\jvm.dll" JavaService.exe -install HXTTService C:\J2SDK1.4.0\jre\bin\server\jvm.dll -Djava.class.path=C:\DBF_JDBC30.jar;C:\J2SDK1.4.0\lib\tools.jar -Dhxtt.urlconfig=C:/urlconfig.properties -Dhxtt.daemonport=8029 -Dhxtt.daemonpassword=apassword -Xms16M -Xmx256M -start com.hxtt.sql.admin.HxttService -stop com.hxtt.sql.admin.HxttService -method stop -out C:\out.log -err c:\err.log -manual -startup 6