HJlib provides support for multiple runtimes. In this article, we will discuss how to set up the JDK8 JDK11 compatible cooperative runtime.
Instructions on the download and set up of the thread-blocking runtime is available in another article.
...
Here are the steps for running HJlib on Java 8 11 using an IDE:
Step 1: Java 8 11 Installation
You will also need a Java 8 11 installation on your machine and have your JAVA_HOME and PATH point to the new installation. Java 8 11 can be downloaded and installed from the Oracle website.
For e.g., I have the following on my Mac machine's .bash_profile:
JAVA8JAVA11_HOME=/Library/Java/JavaVirtualMachines/jdk1jdk11.80.013.jdk/Contents/Home
export JAVA_HOME=${JAVA8JAVA11_HOME}
export PATH=$JAVA_HOME/bin:$PATH
On Windows the environment variables have to be set up differently, refer to this stackoverflow question to see how it can be done.
Step 2: HJlib JAR File
Download the JDK8 JDK11 compatible HJlib jar file and save it to a local directory.
...