Giter Site home page Giter Site logo

jar-launcher's Introduction

Cross-platform native Java launcher

Native executable launcher, starts JAR applications using relative (to launcher executable) paths to JRE and JAR file. Paths are compiled into launcher. Works on Linux, Mac OS X and Windows.

Note: this is not an executable wrapper, for JAR wrapping you may use launch4j (or others like it) instead

Build prerequisites

To compile launcher you will need:

  • bash-like shell
  • GNU make
  • C99 compiler

On windows you may use msysGit bash as shell and mingw-w64 compiler with patched version of make (description).

To build launcher with paths, specific for your application, you must prepare environment file, example:

export JL_PLATFORM=macosx
export JL_EXECUTABLE_NAME=myapp
export JL_JAVA_RELATIVE_PATH=jre/bin/java
export JL_JAR_RELATIVE_PATH=path/to/myapp.jar

Then run:

. myapp.env
make

Build on windows using custom icon and version info

Icon file path, version information (author, company etc) and manifest file are specified in resources/resources.rc file. To use custom parameters, copy resources.rc to myapp.rc, edit it approproately and set this variable in env file:

export JL_RC_FILE=path/to/myapp.rc

License information

This project is released under the Apache License 2.0

Changelog

2012-12-06

  • fix "This program might not have installed correctly" message on windows7, issue1

2012-12-05

  • initial public version

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.