Windows启动时如何启动Java Jar? [英] How to start a Java Jar when windows starts?
本文介绍了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?
推荐答案
我将使用任务计划程序,并使其运行:
I'd use the Task Scheduler, have it run:
java -jar file.jar
java -jar file.jar
并将其设置为在计算机启动时运行,并以最高特权运行.
And set it to run on computer startup, and to run with the highest privileges.
这篇关于Windows启动时如何启动Java Jar?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文