安装jboss为服务

1, http://javaservice.objectweb.org/ 这里可以下载javaservice 的程序包

2, 下载完毕后, 在解压后的目录中,有bin和docs两个目录 在doc目录下有 description.html这个文件

打开,找到Example (JBoss 3.0) 根据其描述一步一步进行即可完成.

3 To install a Java application as a Windows service, you need the following information: service_name Service name to be used for the installed application (i.e. MyJavaService) jvm_location Java Run-Time Environment location (reference to jvm.dll) start_class Java Application program entry point class name (i.e. mypackage.MyClass) start_method (optional, default main) Java Application program entry point method name (i.e. startservice) start_params (optional, no defaults) Java Application program startup parameters

4, example:

注意环境变量要正确设置

JBossService.exe -install JBoss %JAVA_HOME%jrebinserverjvm.dll -Djava.class.path=%JAVA_HOME%libtools.jar;%JBOSS_BIN%run.jar -start org.jboss.Main -stop org.jboss.Main -method systemExit -params "-Xms128m -Xmx256m -Xss128k" -out %JBOSS_BIN%stdout.log -err %JBOSS_BIN%stderr.log -current %JBOSS_BIN% -manual -overwrite -startup 10

你可能感兴趣的:(java,jvm,html,windows,jboss)