Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is it possible to run a Swing application on startup of PC

 
faraz Md
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I want to run a Swing application on start up of my system.

Is it possible to run the application,just after the startup of System.

Please help me....

Thanks in advance..!!

Regards
Faraz
 
Paul Clapham
Sheriff
Posts: 21298
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since it has a user interface, there isn't any point in running it before somebody logs in. If you want to run it when somebody logs in, that's probably possible, but how you would do it depends on what operating system you were asking about.
 
faraz Md
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thing is ..I want to create a gadget kind of thing with spring..As a desktop application....

Now,Whenever I run the through IDE or command promt ..the Gadget appears
What I want ..I want to run this gadget when i start my computer..

I hope..I am able to explain my requirement
 
Darryl Burke
Bartender
Posts: 5147
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The question has nothing to do with Java and everything to do with your OS. Do you know how to schedule any program to run on computer startup?
 
faraz Md
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Darryl...

Yesterday 11:45:14 AM Subject: Is it possible to run a Swing application on startup of PC

--------------------------------------------------------------------------------

The question has nothing to do with Java and everything to do with your OS. Do you know how to schedule any program to run on computer startup?
--------------------------------------------------------------------------------
I don't know how to schedule any program to run on computer startup...
But Thanks for the answer...I will look into it...any try to put solution as well
 
Campbell Ritchie
Sheriff
Pie
Posts: 49733
69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Faraz Md please read your private messages before you post again.
 
Rob Spoor
Sheriff
Pie
Posts: 20605
60
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can run Java programs upon PC startup using a service wrapper; look it up. However, it cannot interact with the desktop, so no user interface is possible.

You can run any Java program whenever a user logs in. In Windows, all you need to do is create a shortcut in the Startup folder of the start menu. Another option is using the Run part of the registry. In Linux it's different but still possible.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic