简体   繁体   中英

Could Java be used to write a Win32 System Service?

The title sort of sums it up. I was thinking of using Jabaco seeing as it makes .EXEs (as well as .jar files), and I'm more familiar with VB syntax than with Java.

You could certainly do this with the Java Service Wrapper . I'm not familiar with Jabaco, but I wouldn't be at all surprised if you can simply reference the Jabaco runtime from the Java Service Wrapper. It's a pretty trivial tool to use, and the free variant should be sufficient.

此外,还有一个Java特定的Win32服务包装器: JSL

I'm not sure if you could java directly to create a service, but you can use srvany.exe to run any program as a service.

http://support.microsoft.com/kb/137890

Jpackages dot com have a product called execJ which does exactly that.

I also found an article about how to do it differently here .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM