• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Updating a Java Program from the web...

 
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Take a look at JNLP/Webstart.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic