Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to add a jar to windows startup by java code and run it in background?

807580Nov 7 2008 — edited Nov 10 2009
Hi 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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 8 2009
Added on Nov 7 2008
8 comments
1,043 views