![]() ![]() This will give you an error if you run manually but will run in background. The service did not respond to the start or control request in a timely fashionĬmd /c D:\JAVA7~1\jdk1.7.0_51\bin\java.exe -jar d:\jenkins\jenkins.war In some restricted environment as I was in corporate environment ![]() ![]() If you get timeout use cmd /c D:\JAVA7~1\jdk1.7.0_51\bin\java.exe -jar d:\jenkins\jenkins.war but even with this you'll get timeout but in background java.exe will be started. Sc create serviceName binpath= "java.exe -jar D:\.\runJar.jar" Will create windows service In it's property -> shortcut -> target - > java.exe -jar D:\.\runJar.jar Windows 7 C:\users\All Users\Start Menu\Programs\Startup(Admin) or User home directory(%userProfile%) It's simple as you have to put shortcut in I've checked the 'Start-up' tab under Task Manager, the 'Services' tab in msconfig, and the startup folder ( C:\Users\\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup) but there's an app that keeps coming up whenever I boot (Patriot Dashboard) that's not listed in any of those places.![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |