Meaningless Drivel is fun!
The moose likes Java in General and the fly likes Creating persistent app Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Creating persistent app" Watch "Creating persistent app" New topic

Creating persistent app

igwe kalu kalu ogba
Ranch Hand

Joined: Feb 03, 2005
Posts: 133
Hello, I have created a java application which contacs a web service every hour (using threading) and then displays a small JFrame with a message. This application works within the company intranet. I have 2 classes (one which runs the thread) and another which will display the alert, + a folder containing classes for accessing web services using ksoap.
Here is my problem.

I want to be able to install this program to everyones computer on the LAN (required)
The program has to run as soon as the users computer starts up, it then displays alerts every hour.

So, how do I create my installer, presumably there has to be an exe file? , but I imagine everything else, required classes e.t.c will have to be put into a jar file?

Maybe I'm not so good at explaining, but this is more or les what I am looking for.
igwe kalu kalu ogba
Ranch Hand

Joined: Feb 03, 2005
Posts: 133
Can I do it with JNLP and JAva web start? is it possible?
Please note that if a user has messages, clicking the view button will open internet explorer to display them. Thanks.
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
With IE these sound like Windows machines. Look into running your program as a service. I think that would be the most reliable way to get it started at logon. There are a number of free tools available to run Java as a service ... just a Google away. Getting it installed may be trickier than plain Java. My company uses a product called Marimba that can "push" software installs to workstations.

A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Pete Harris
Ranch Hand

Joined: Feb 05, 2003
Posts: 39
Not sure if you can do an network install, but you may want to look into Advanced Installer.

It's got a system for installing java programs as windows services and creates windows MSI installer files.

I agree. Here's the link:
subject: Creating persistent app
jQuery in Action, 3rd edition