Menu

Home

Gianni Van Hoecke
Attachments

How to use jUpdateChecker

  1. Download the latest version of jUpdateChecker.
  2. Add the jar file to your application.
  3. Create an instance of jUpdateChecker. Example:
String  appName         = "Test App";
Version currentVersion  = new Version( 0, 1 );
String  newVersionURL   = "http://giannivanhoecke.com/jUpdateChecker_version.txt";
String  releaseNotesURL = "http://sfap.sourceforge.net/releasenotes.html";
String  downloadPageURL = "http://giannivanhoecke.com/";
JUpdateChecker jUpdateChecker = new JUpdateChecker( appName, currentVersion, newVersionURL, releaseNotesURL, downloadPageURL );
  1. To check for updates call the following:
jUpdateChecker.checkForUpdates( true, false );

The @true@ is we want to use a GUI instead of the terminal.
The @false@ is that we want to be notified when there are no updates available.

You can find the example as an attachment.


Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.