This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes Java in General and the fly likes How to automaticlly start an application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "How to automaticlly start an application" Watch "How to automaticlly start an application" New topic

How to automaticlly start an application

Alex Adam

Joined: Sep 26, 2003
Posts: 4
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)

Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
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.

"JavaRanch, where the deer and the Certified play" - David O'Meara
Mani Ram
Ranch Hand

Joined: Mar 11, 2002
Posts: 1140
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.

Quaerendo Invenietis
I agree. Here's the link:
subject: How to automaticlly start an application