java 打包成服务_Java应用程序安装成一个Wins 服务(Java Service Wrapper 打包工具)...

#********************************************************************# Wrapper Properties

#********************************************************************# Java Application

wrapper.java.command=java

#Java Application 如果没设置java环境变量

#wrapper.java.command=D:\Program Files\Java\jdk1.6.0_10\bin\java

# Java Mainclass.  Thisclassmust implement the WrapperListenerinterface#  or guarantee that the WrapperManagerclassis initialized.  Helper

#  classes are provided todothisforyou.  See the Integration

section

#  of the documentationfordetails.

wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp

# Java Classpath (include wrapper.jar)  Addclasspath elements as

#  needed starting from1wrapper.java.classpath.1=../lib/wrapper.jar

wrapper.java.classpath.2=../bin/.

#你的应用程序需要引入的第三方jar

wrapper.java.classpath.3=../bin/ant-1.6.5.jar

wrapper.java.classpath.4=../bin/sqljdbc.jar

# Java Library Path (location of Wrapper.DLL or libwrapper.so)

wrapper.java.library.path.1=../lib

# Java Additional Parameters

wrapper.java.additional.1=-Dprogram.name=NB.bat

# Initial Java Heap Size (in MB)

#wrapper.java.initmemory=3# Maximum Java Heap Size (in MB)

#wrapper.java.maxmemory=64# Application parameters.  Add parameters as needed starting from1你的应用程序的main Class

wrapper.app.parameter.1=com.fg114.log.service.EggTimer

#********************************************************************# Wrapper Logging Properties

#********************************************************************# Format of outputforthe console.  (See docsforformats)

wrapper.console.format=PM

# Log Levelforconsole output.  (See docsforlog levels)

wrapper.console.loglevel=INFO

# Log file to useforwrapper output logging.

wrapper.logfile=../logs/wrapper.log

# Format of outputforthe log file.  (See docsforformats)

wrapper.logfile.format=LPTM

# Log Levelforlog file output.  (See docsforlog levels)

wrapper.logfile.loglevel=INFO

# Maximum size that the log file will be allowed to grow to before

#  the log is rolled. Size is specified in bytes.  Thedefaultvalue

#  of0, disables log rolling.  May abbreviate with the'k'(kb) or

#'m'(mb) suffix.  For example: 10m=10megabytes.

wrapper.logfile.maxsize=0# Maximum number of rolled log files which will be allowed before old

#  files are deleted.  Thedefaultvalue of0implies no limit.

wrapper.logfile.maxfiles=0# Log Levelforsys/event log output.  (See docsforlog levels)

wrapper.syslog.loglevel=NONE

#********************************************************************# Wrapper Windows Properties

#********************************************************************# Title to use when running as a console

wrapper.console.title=Ann test

#********************************************************************# Wrapper Windows NT/2000/XP Service Properties

#********************************************************************# WARNING-Do not modify any of these properties when an application

#  usingthisconfiguration file has been installed as a service.

#  Please uninstall the service before modifyingthissection.  The

#  service can then be reinstalled.

# Name of the service

wrapper.ntservice.name=Ann test

# Display name of the service

wrapper.ntservice.displayname=Ann test

# Description of the service

wrapper.ntservice.description=Ann test

# Service dependencies.  Add dependencies as needed starting from1wrapper.ntservice.dependency.1=# Mode in which the service is installed.  AUTO_START or DEMAND_START

wrapper.ntservice.starttype=AUTO_START

# Allow the service to interact with the desktop.

wrapper.ntservice.interactive=fal

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值