Click here to Skip to main content
15,892,537 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i need a java code that makes my jar file opens automatically on the windows start up.
i want it to be running on the notification area
Posted
Comments
Prasad Khandekar 23-Mar-13 7:44am    
Running java program in notification area can not be achieved easily in Java. However you can create a self executing jar file and run it using a batch file. This batch file can then be made to run at the startup (Autorun). The batch file will basically create the environment by configuring the JAVA_HOME and path to JAVA_HOME\bin.

1 solution

Then you will need to write it; no one is going to provide this for you. You could also investigate the use of the HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run registry key.
 
Share this answer
 
Comments
Khaled Mohamed El Sawy 23-Mar-13 8:04am    
i have seen this before but it didnt help , what makes an application like utorrent run on windows start up every time ?
Richard MacCutchan 23-Mar-13 8:12am    
As I said, look into the use of that registry key. A bit more research with Google should find you some existing samples.
Khaled Mohamed El Sawy 23-Mar-13 8:15am    
thanks Richard

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900