Giter Club home page Giter Club logo

japps's Introduction

Java-app-installer

How to use (For mass distributing)

Download the zip for the latest release from the 'releases' tab, then extract it on your usb. Once you do that, it is recommended for you to add a shortcut to the program on your flash drive so that the client can locate the app easier. The final neccesary thing to do is The app will probably be blocked so you may have to transfer it to a directory on the client's computer that apps can run (see this for bypassing applocker). This process will be autonomized in the future via an HTA, which can be run, even with AppLocker turned on. For the client app to be able to detect your usb, create a text file named the value of USB_DETECTOR_NAME in appConfig.java (default is "usbDetect.txt")

How to use (For single client)

Download the zip for the latest release from the 'releases' tab, then extract it to a directory where you are allowed to run apps, (see this). Run jApps.exe and install whatever.


Create/compile your own custom distribution

Create your own distribution

To add your own apps, modify the apps.json file to add your own apps. The apps.json file gives the parameters for the constructors in the Item class. There are already several examples in the file so look at that for help also. You can also modify other important things you may want to change is in the appConfig class such as the install directory and such.

Create an executable for your new distribution

Compile your program and create a jar file with your IDE, then use a program like packr or launch4j to create the exe (note: launch4j is easier to use, see this for how to use launch4j and this for including the jre in your exe for launch4j) Other jvm packagers will be a similar process but in this example, I'll be using packr.

Create a JSON named config.json and put it whereever. Unless you've made massive changes, you shouldn't have to change much

{
    "platform": "windows64",
    "jdk": "C:/Program Files/Java/YOUR_JDK_VERSION!!!!",
    "executable": "jApps",
    "classpath": [
        "C:/PATH/TO/YOUR/JAR/jApps2.jar"
    ],
    "mainclass": "components.jApps",
    "vmargs": [
       "Xmx1G"
    ],
    "minimizejre": "hard",
    "output": "jApps"
}

Now run this cmd script in the same directory

java -jar packr-all-4.0.0.jar config.json

You now have your exe! You may want to create/download a miniature jre and replace the current one in the folder since your app is likely 200 MB+

japps's People

Contributors

hidude562 avatar

Stargazers

Tyler Kobida avatar

Watchers

 avatar

Forkers

kobiware

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.