How to add a jar to windows startup by java code and run it in background?
807580Nov 7 2008 — edited Nov 10 2009Hi all,
Let's assume that I have a console java application (jar). Is it possible to add it to windows startup so every time windows is restarted, so will my application? Also is it possible to run it on background without a command line window opened? What I mean is that my program should automatically run whenever windows is restarted and it should run in background without making the user know that it is running. It is OK if s/he can see it on the task manager, however s/he shouldn't be able to understand that the program is running without looking at the task manager. I want of all this to be done at the first running of the program and implemented by java code (you can call it an installer). Are all these, or a part possible?
Thanks for all help in advance.