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.
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.
Change the main class in the file gradle.properties
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.
- 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.
To run JPro on linux, the server must be configured correctly.
Checkout the following chapters to configure your server correctly for JPro:
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.
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