我需要某种方式来启动我的 Java 应用程序,而无需强制用户手动运行应用程序。我不完全确定我会怎么做,有人可以提供任何帮助吗?
问问题
10166 次
2 回答
2
Run it as a Windows Service. It's the way to go.
For various ways to run it as a service, check out the answers to the following questions:
- Install java program as a windows service: Alternative to JavaService?
- How to create a windows service from java app
You can also read this article.
于 2013-09-18T14:10:26.533 回答
1
使用注册表编辑器将 .exe 文件的路径添加到启动 goto 从开始菜单运行,键入 regedit.exe
然后导航到 HKEY_CURRENT_USER / SOFTWARE / MICROSOFT / WINDOWS / CURRENT_VERSION / RUN
在右侧,创建一个新的字符串值
name = "anything" and value = java.exe -jar "文件的完整路径"
按确定保存注册表项,重新启动电脑查看效果
于 2014-05-18T16:30:33.273 回答