Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

updater for app

 
Alan Shiers
Ranch Hand
Posts: 237
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,

After you download the JRE it continues to perform checks to see if new versions of the JRE are available. It prompts the user to download the latest version and performs the task automatically. I would like to know where the API is for this so that I can use it on my own application. Does anybody know where I can find it?

Alan
 
Paul Clapham
Sheriff
Posts: 21107
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's Java Web Start you're describing. At least at the application level it is; the JRE uses a different method.
 
Alan Shiers
Ranch Hand
Posts: 237
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I had a quick look at Java Web Start. It doesn't appear to serve my purposes. My application is intended to be deployed directly onto a clients computer including a specific directory structure and dependancies. I had intended to use IzPack to deploy my app. I spent months trying to figure it out and get it working properly. The only missing piece to the solution is providing a means of updating the central jar file.

Java Web Start applications seem to sit on a web server somewhere. At least, that's what the tutorial indicates that I read at: http://docs.oracle.com/javase/tutorial/deployment/webstart/index.html . If Java Web Start allows me to download the executable jar created by IzPack then installs my app onto a clients machine, and allows me to perform updates on the clients machine, I would be interested in learning more.

Alan
 
Paul Clapham
Sheriff
Posts: 21107
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, if you want to stick with your original setup (using izPack and so on) and just add the feature to check monthly for new versions, then no, Java Web Start won't do. If it were me I would be looking to see what izPack can do for you. Perhaps they already have something which does the periodic check for new versions -- remember that it wouldn't be your application doing the check, it would be some other much smaller piece of software whose only purpose is to wake up from time to time and check some value on a web site somewhere.

I suggested Web Start just based on what you said, which didn't mention all those additional requirements. It works really well if your only goal is to distribute an application, while making sure the right version of the JRE is available and checking for updates every time the user starts the application. You might even have been able to use it when you originally decided to distribute your application, but now it looks like you've gone too far down a different road and starting over could be a lot of work.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic