大致步骤相同,在文件配置及需要的文件有所不同.
下载地址:http://wrapper.tanukisoftware.com/doc/english/download.jsp
步骤:
1.建立目录
建立一个目录比如:D盘server文件夹里面建立bin、conf、logs、lib文件夹。
2.拷贝所需文件到先前建立的目录
将wrapper_home/bin目录里wrapper.exe
将wrapper_home/src/bin目录里App.bat.in 将wrapper_home/src/bin目录里InstallApp-NT.bat.in 将wrapper_home/src/bin目录里UninstallApp-NT.bat.in 统一拷贝至server/bin目录里,并去掉后缀名in。 将wrapper_home/src/conf目录wrapper.conf和wrapper-license.conf拷贝至server/conf目录里去掉后缀名in 再将wrapper_home/lib/目录里面的wrapper.jar和wrapper.dll拷贝至server/lib目录里面
3.配置conf文件
主要修改以下几项即可:#你的JVM位置:wrapper.java.command=%JAVA_HOME%\bin\java#classpath:里面添加上你要执行的应用程序jar,以及依赖的第三方jar,有多个依次类推wrapper.java.classpath.1=../lib/应用程序.jarwrapper.java.classpath.2=../lib/wrapper.jarwrapper.java.classpath.3=../bin/第三方.jar# Java Library Path (location of Wrapper.DLL or libwrapper.so)wrapper.java.library.path.1=../lib#MAIN CLASS此处是的改下:wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp
否则可以执行,但会无故停止。
Advice:
ADVICE | wrapper | 2013/04/14 12:59:56 | The Wrapper consists of a native component as well as a set of classes
ADVICE | wrapper | 2013/04/14 12:59:56 | which run within the JVM that it launches. The Java component of the
ADVICE | wrapper | 2013/04/14 12:59:56 | Wrapper must be initialized promptly after the JVM is launched or the
ADVICE | wrapper | 2013/04/14 12:59:56 | Wrapper will timeout, as just happened. Most likely the main class
ADVICE | wrapper | 2013/04/14 12:59:56 | specified in the Wrapper configuration file is not correctly initializing
ADVICE | wrapper | 2013/04/14 12:59:56 | the Wrapper classes:
ADVICE | wrapper | 2013/04/14 12:59:56 | com.techbirds.main.CallHtmlTimer
ADVICE | wrapper | 2013/04/14 12:59:56 | While it is possible to do so manually, the Wrapper ships with helper
ADVICE | wrapper | 2013/04/14 12:59:56 | classes to make this initialization processes automatic.
ADVICE | wrapper | 2013/04/14 12:59:56 | Please review the integration section of the Wrapper's documentation
ADVICE | wrapper | 2013/04/14 12:59:56 | for the various methods which can be employed to launch an application
ADVICE | wrapper | 2013/04/14 12:59:56 | within the Wrapper:
ADVICE | wrapper | 2013/04/14 12:59:56 | http://wrapper.tanukisoftware.com/doc/english/integrate.html
ADVICE | wrapper | 2013/04/14 12:59:56 | ----------------------------------------
ps:如果这个没配对,会导致安装的服务,启动出错1503。相当坑爹。
#执行类
wrapper.app.parameter.1=com.techbirds.main.CallHtmlTimer
#服务名
wrapper.ntservice.name=server# Display name of the servicewrapper.ntservice.displayname=server#服务描述wrapper.ntservice.description=receive message其他的配置根据你的需要改变即可
4.控制台执行服务
对以上配置的App.bat进行测试,运行App.bat,dos窗口中显示;
5.生成win 服务
对以上配置的服务进行测试,运行server/bin/InstallApp-NT.bat将把你的应用(此处为server)安装到Win32系统服务中了。
bin/App.bat 控制台方式运行程序bin/InstallApp-NT.bat 安装服务bin/UninstallApp-NT.bat删除服务
分享到:
相关推荐
NULL 博文链接:https://xbgd.iteye.com/blog/754948
SpringBoot 使用Java Service Wrapper 部署Windows服务
对以上配置的服务进行测试,运行InstallMyApp-NT.bat将把你的应用(此处为App)安装到Win32系统服务中了。 打开控制面板-管理程序-服务,看到App已经在系统服务中了,其他用法就与我们熟悉的Windows服务一样了。 ...
在项目的开发中,有时候需要将Java应用程序打包成Windows服务,我们就直接可以通过windows的服务来启动和关闭java程序了。 本博文将通过有两种方法实现该功能,手动创建法和Maven自动打包法。
Java Service Wrapper使用总结,将java应用发布为可安装的服务
Java Service Wrapper使用说明
Java Service Wrapper部署说明 Java Service Wrapper是一个开源的软件,能够将Java程序发布到不同平台,并保证其JVM正常运行。 附件是一个实例,有比较详细的说明。更多的可以参考其网站
去CSDN下载所谓破解出现以下错误:wrapper | Licensed to (null) for (null) wrapper | wrapper | Launching a JVM... jvm 1 | WrapperManager: Initializing... jvm 1 | WrapperJNI Error: Not licensed to use ...
Java Service Wrapper 3.5.25 标准版破解,Windows 64位
YSJSW(Yet Another Java Service Wrapper) 可以配置java应用为windows服务。
Java Service Wrapper 可以将Java程序包装成系统服务,这样就可以随着系统的运行而自动运行。Java Service Wrapper分为Professional、Standard、Community三个版本,并支持32位和64位的系统,其中Community版本为...
Java Service Wrapper 可以将Java程序包装成系统服务,这样就可以随着系统的运行而自动运行。此文件为32位Community版本免费的社区版本。
Java Service Wrapper可以将java程序做成windows服务,逼格满满
Java Service Wrapper可为应用程序提供以下功能: (1)把应用安装为Windows服务或Linux守护进程; (2)监测JVM运行情况,对于程序原因或内存溢出导致的虚拟机崩溃实现自动重启; (3)记录运行日志;
Windows Service Wrapper是一款开源的,可以实现nginx注册为Windows服务的软件工具,非常实用。可以解决nginx每次配置需要手动重启不方便的弊端。
NULL 博文链接:https://s24963386.iteye.com/blog/744637
Windows service wrapper 可以用来创建一个Windows服务
使用Wrapper将Java Application程序封装为Windows下面的服务
Windows Service Wrapper 2.1,将本地程序注册为服务,该版本要.net支持,内含.net2和4版本的,含官方样例。