如何在 Windows 启动时启动 Java Jar?
我听说您可以向注册表添加一个密钥,但 Windows Vista 和 7 上存在权限问题。什么是最安全的?在系统启动时启动Java程序的最佳方式?
I read you can add a key to the registry, but there are permission problems on Windows Vista and 7. What's the safest & best way to start a Java program on System startup?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
您可以设置 Java 服务包装器以在 Windows 启动时启动 Java 应用程序。
http://www.google.com/search?q=java+service+wrapper
You can setup a Java service wrapper to start a Java application on windows startup.
http://www.google.com/search?q=java+service+wrapper
我会使用任务计划程序,让它运行:
并设置其在计算机启动时运行,并以最高权限运行。
I'd use the Task Scheduler, have it run:
And set it to run on computer startup, and to run with the highest privileges.
您想通过代码还是手动执行此操作?
但都是关于注册表的,为什么不检查 Java Service Wrapper 呢?
You wanna do this on code or manually ?
But is all about the Registry, why don't you check the Java Service Wrapper ?
winsw 工作得非常好: http://kenai.com/projects/winsw
(不过需要 .NET)
winsw works very nicely: http://kenai.com/projects/winsw
(requires .NET though)