Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Here are the steps for running HJ-lib HJlib on Java 8 using an IDE:

Step 1: Java 8 Installation

...

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: HJ-lib HJlib JAR File

Download the hj-lib JDK8 compatible HJlib jar file and save it to a local directory.

...

Step 3: IDE like IntelliJ or Eclipse

HJ-lib HJlib is a simple Java library (jar file) and can be used in any Java project. As such a simple text editor can be used to write programs that use hj-libHJlib.

However, we recommend using an IDE like IntelliJ to do the Java development using hj-lib HJlib in the labs and assignments.

...

We show how to set up a simple project with a hj-lib HJlib HelloWorld program in IntelliJ. Similar steps can be followed for other IDEs like Eclipse.

...

We now need to add the previously downloaded hj-lib HJlib jar from Step 2 as a dependency to this project. We need to do this from the module settings.

...

We will be using Java 8 lambdas while developing with hj-libHJlib, so we need to ensure the language level settings in the project:

...

We are now ready to write our first HJ application using HJ-libHJlib.

To create a java file, right click on the 'src' folder and select New -> Java Class.

...