Skip to content

JPro-one/JPro-from-Jars

Repository files navigation

JPro from Jars

Build Status

This project helps you to use JPro, when you have only the Jars of your application.

This might be useful for those developer, who use their IDE directly, and don't want to convert their original project into a Maven or Gradle project.

How to use:

Step1

Put your Jars into the folder ./libs.

It can be either a single fat jar, or the jars of your application with it's libraries.

Step2

Change the main class in the file gradle.properties

Step3

On Mac/Linux, run the following command: ./gradlew jproRun.

On Windows, run the following command: ./gradlew.bat jproRun.

After some time, the browser should open automatically.

Additional Notes

  • Take a look at our documentation, for further information.
  • This project is based on HelloJPro
  • Technically, this is a simple gradle project using JPro. You can configure this project, like any other JPro project.
  • If you want to use multiple main classes, you can add the file src/main/resources/jpro.conf and add multiple main classes. Take a look at our documentation.

Deployment:

Step 1. Prepare your server

To run JPro on linux, the server must be configured correctly.

Checkout the following chapters to configure your server correctly for JPro:

DEPLOYING JPRO

PREPARING LINUX FOR JPRO

Step 2. Create the binary

Create a zip which contains the application with the following command:

./gradlew jproRelease

The path of the zip-file is the following: build/distributions/HelloJPro-jpro.zip

Now copy this file to your Server and unzip it.

Step 3. Run JPro

In the unzipped folder you can find a start-script: bin/start.sh

By running ./bin/start.sh you start the JPro Server on your server.

The JPro Server is now ready to server your URLs entered in your browser.

./bin/start.sh

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages