将Java应用程序作为服务运行 [英] Run Java application as a service

查看:326
本文介绍了将Java应用程序作为服务运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将Java应用程序作为服务运行。不幸的是,我受限制的是我不能使用 Java Service Wrapper (看起来确实如此)一个很好的工具)。

I would like to run a Java application as a service. Unfortunately, I am limited in that I can't use something like the Java Service Wrapper (which does appear to be an excellent tool).

有没有办法在不依赖外部应用程序的情况下运行可执行JAR作为服务?我目前已安装该服务,但无法启动。这就是我陷入困境的地方,除了有关JSW的信息之外,我还没有在谷歌上找到任何东西。

Is there any way of running an executable JAR, as a service, without relying on external applications? I currently have the service installed, but it fails to start. This is where I am getting stuck and I haven't been able to find anything on Google other than information about the JSW.

推荐答案

Java Service Wrapper的LGPL克隆: http://yajsw.sourceforge.net

There's an LGPL clone of the Java Service Wrapper: http://yajsw.sourceforge.net

BTW,IANAL,但我怀疑JSW人员正在传播FUD,他们的软件可用于在GPL许可下为商业应用程序提供服务,就像人们可以通过gzip商业应用程序进行再分配一样。不过我可能完全错了:)

BTW, IANAL, but I suspect that JSW people are spreading FUD, and their software can be used to service-enable commercial applications under GPL license, just like one can gzip a commercial app for redistribution. I could be completely wrong about this, though :)

这篇关于将Java应用程序作为服务运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆