This article explains how to install and use the Windward Java Engine in Linux. This tutorial specifically uses Ubuntu Server 18.04 LTS, but the steps should work on any Linux system with little extra effort.
After completing this tutorial you will have installed the Windward Java Engine on a Linux system.
The first thing needed is a JDK (Java Development Kit) installation. This isn't too hard to come by, but depending on your distribution of Linux, this step might be slightly different.
In the terminal, run the bellow commands to install Java 8:
Verify the installation by running the following command:
The Oracle JDK isn't available in the default repositories on some systems, which is why we use OpenJDK here. There are guides on the internet that show you how to get the correct PPA repositories set up to get the Oracle JDK, should you need that option.
For other systems, such as Debian, Fedora, or any other flavor of Linux, this command will be different, but it should be pretty straightforward if you are familiar with your operating systems package manager.
The engine is available from the downloads page, so we can download it via the terminal with this command:
Note: the above command is to download Java Engine version 188.8.131.52
We're going to install it to /opt/windward to make things easy. So we will create the directory with the following command:
Then we will unzip the contents of the zip file we downloaded earlier, and move the contents to /opt/windward:
The zip file contains:
- jars: A directory containing all the jars required for the Java Engine
- The Windward License Agreement pdf
Then we need to place the jar files in the correct location so Java can find them:
And finally, tell Java where to find them. We're adding it to the /etc/environment file for future use. The export command allows us to work with it during this session. Run the following commands:
The Java engine is now setup on your Linux machine.
Checkout our Java Engine samples on github.