aspose file tools*
The moose likes Java in General and the fly likes Updating a Java Program from the web... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Updating a Java Program from the web..." Watch "Updating a Java Program from the web..." New topic
Author

Updating a Java Program from the web...

Landon Blake
Ranch Hand

Joined: Dec 04, 2003
Posts: 121
Both NetBeans and Eclipse offer a mechanism to update "plug-ins" or "modules" from the web.

This concept has intrigued me, and I would like to implement something similar in my own programs. I'm thinking of something that would read a text file on a webserver to check for updates to my program or its plug-ins.

However, I've never done anything like this, and I'm not even sure what classes I would start to look at. I gues my first questions would be:

[1] Is there a "standard" way to implement this type of functionality?
[2] How do I access a text file that resides at a URL, such as a web address?
[3] How do I download a JAR from the web and execute its main method from within a running Java application?

Thanks,

Landon
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
Take a look at JNLP/Webstart.


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Updating a Java Program from the web...