Code Monkey home page Code Monkey logo

jupdatechecker's Introduction

jUpdateChecker

jUpdateChecker is a Java library to check for updates.

Requirements

  • Java 1.6+

Screen shots

Screen shot 1

Screen shot 2

Screen shot 3

Screen shot 4

How to use

Add the maven repo to your pom file:

<repositories>
    <repository>
        <id>giannivanhoecke</id>
        <url>http://maven.giannivanhoecke.com/</url>
        <releases>
            <enabled>true</enabled>
        </releases>
        <snapshots>
            <enabled>false</enabled>
        </snapshots>
    </repository>
</repositories>

Add the dependency to your pom file:

<dependencies>
    <dependency>
        <groupId>com.giannivanhoecke.jupdate-checker</groupId>
        <artifactId>jupdate-checker-core</artifactId>
        <version>0.1</version>
    </dependency>
</dependencies>

Example on how to add the update checker to your Java app:

String  appName         = "Test";
Version currentVersion  = new Version( 0, 1 );
String  newVersionURL   = "http://giannivanhoecke.com/dev/jupdatecheckertestappversion.txt";
String  releaseNotesURL = "http://giannivanhoecke.com/dev/jupdatecheckertestappversionrn.html";
String  downloadPageURL = "http://giannivanhoecke.com/";

JUpdateChecker jUpdateChecker =
        new JUpdateChecker( appName, currentVersion, newVersionURL, releaseNotesURL, downloadPageURL, null,
                "http://giannivanhoecke.com/dev/jupdatecheckertestappversionfile.txt" );

try {

    //Show gui...
    jUpdateChecker.checkForUpdates( false );
}
catch( IOException e ) {

    e.printStackTrace();
}
catch( InvalidVersionException e ) {

    e.printStackTrace();
}

jupdatechecker's People

Contributors

giannivh avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.