File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
JavaRanch » Java Forums » Java » Java in General
Bookmark "How to automaticlly start an application" Watch "How to automaticlly start an application" New topic
Author

How to automaticlly start an application

Alex Adam
Greenhorn

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

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.


Mani
Quaerendo Invenietis
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to automaticlly start an application
 
Similar Threads
How close to real exam?
Confused with many to many,
Display data from a database
How close to real exam?
Swing vs VB