How to start a Java Jar when windows starts?
问题 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? 回答1: You can setup a Java service wrapper to start a Java application on windows startup. http://www.google.com/search?q=java+service+wrapper 回答2: 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. 回答3: You wanna do this on code or