Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to automaticlly start an application  RSS feed

 
Alex Adam
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.
I have a java program that need to be started at user logon on windows.
I know that it needs to be placed in the startup folder of the user, but what do I place there? An .exe?Or maybe a .bat file that starts a JVM
(i.e.: java myprogram)

Thanks,
Alex
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I understand you, you are asking how to run a java program as a Windows Service. Correct?
You could try Java Service Wrapper. It's free.
 
Mani Ram
Ranch Hand
Posts: 1140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you want to run your program as a Windows Service, then Cindy's suggestion is good.
But if you just want to start your program in the start-up, and doesn't want to make it a Windows service, a simple batch file will do, as you pointed.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!