我读到可以在注册表中添加密钥,但是Windows Vista和7上存在权限问题。在系统启动时启动Java程序的最安全最好的方法是什么?
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:
java -jar file.jar
And set it to run on computer startup, and to run with the highest privileges.
You wanna do this on code or manually ?
But is all about the Registry, why don't you check the Java Service Wrapper ?
winsw works very nicely: http://kenai.com/projects/winsw
(requires .NET though)
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.