Copy the root url of a repository and include it to following command:
git clone https://github.com/<user-name>/<repository-name> <your-target-path>
Please note that git must be installed to run this command.
Alternatively, download as compressed folder and unpack locally.
- Go to
File > New
- Pick
Maven > Project from Existing Sources...
- Now, navigate to the directory you cloned it to
- Select the
pom.xml
file and clickOK
- The project will be opened and build
- Go to
File > Import
- Pick
Maven > Existing Maven Project
- Now, navigate to the directory you cloned it to
- Pick the root directory and click
Finish
- The project will be opened and build
- Go to
File > Project Structure...
- Go to the
Artifacts
tab and add a newJar > From module with dependencies
entry - Select the main class
- Click
Ok
twice - Go to
Build > Build Artifacts...
- Select
Build
- The Jar file is now added to the
target
folder within the project structure
- Right click on the project
- Choose
Export
- Go to
Java > Runnable JAR file
- Click
Next
- Launch configuration: choose the main class
- Export destination: the place you want to save the jar
- Choose
Extract required libraries into generated JAR
- Click
Finish
to start the Jar generation
You can directly run it within the IDE. Refer to support page of the specific IDE.
Download the jar file from the releases or build it yourself in the IDE.
Start the application with following command in your terminal:
java -jar <filename>.jar <optional-arguments>
Please note that the java path and java home variables must be set. Also note that the command must be run from the same directory where the jar file is located, otherwise the relative or full path must be added as prefix of the jar file.
In case of an application with graphic user interface, you may start the application by double clicking on the jar file.
Make sure you did set the java path and java home variables.
Try to start it from the terminal. There, you might get more specific error messages.
In case you experience weird UI behavior (e.g. buttons look weird), it may be a DPI scaling issue known to occur with Windows 10 notebooks. To fix it, do following steps:
- Find the
java.exe
the application is running with (check Task Manager) - Rightclick on the
java.exe
and go toProperties
- Open the
Compability
tab - Check
Override high DPI scaling behavior
- Choose
System
forScaling performed by:
- Rerun the application