Java - RestAPI Sample

The Project was build with the IntelliJ IDEA Community Edition of JetBrains (download can be found here https://www.jetbrains.com/idea/download/other.html)

 

While the installation you can setup the associations:

Download of the Sample Projekt:

https://www.stepoverinfo.net/download.php?file=JavaNextGenRestAPIDemo.zip (420MB)

Extract the folder and right click it. Select “Open Folder as IntelliJ Community Edition Project”. Alternative you can also open the project in the IDE directly.

You have to trust the poject by clicking on „Trust Project“

While the project is loaded by the IDE, the required dependencies will be downloaded, which can take some time.

The following warning needs to be confirmed by clicking on „Download and Install“, to download GIT.

The Installation of GIT needs to be confirmed

After the installation, click on the remaining warning, the configuration of the GIT directories appears, mark the only line and remove it using the “-“ button then confirm with OK.

Select inside the Menu „Project Structure“

A dialog appears in which we still have to set the SDK (this changes depending on the IDE and version)

In the dropdown menu we select “Add JDK” and accept the default “OpenJDK 20.0.2”, then we click on “Download” and “OK”. The JDK is downloaded and installed in the background.

Select Version Control at the top and then Create Git Repository

confirm the following dialog with OK.

Then we can build and debug the project, click on the icon that looks like a beetle

A message appears from the Windows Firewall, confirm access

The program will start, please be patient, as Windows 11 will start the program, but it still has to run the virus check. Only then can the program access the network and address a NextGen device

To build a standalone version, go to “Build” / “Build Artifacts” in the Hamburg menu.

In the following dialog, select the relevant OS and then click “Rebuild”.

In the “out/artifacts” subfolder in the project directory you will find a version to start directly after the build process is complete.

Start “runp.bat” under Windows by double-clicking or

under Linux/MacOS the “run.sh” (if necessary, this file must also be given the execution feature)