0

I have created a jar. It of coarse work fine. I want that jar to run at start-up automatically. How can I do so??

sedflix
  • 216
  • 2
  • 12

1 Answers1

1

You can write a .bat file to accomplish this.

@javaw -jar path/to/jar/your.jar arguments

(if your jar is an command prompt app, use @java)

and then put this .bat file in startup directory.

where is startup directory:

In windows, you can click the Start button Picture of the Start button , click All Programs, right-click the Startup folder, and then click Open.

Owen Cao
  • 7,294
  • 2
  • 24
  • 33