Versions Compared

Key

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

...

On the next window click Finish, we do not need dependencies on any other technologies.

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

Image Added

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

Image Added

Next, we need to add the library dependency:

Image Added

Clicking on the plus icon and selecting a Java library allows us to choose the location for the jar file:

Image Added

Once added, we can click 'Apply' and 'OK' to save our changes.

We are now eady to write out first HJ application using hj-lib.

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

Use 'HelloWorld' as the name of the class and type in the sample program:

Image Added

Now we can run this program by right clicking on the HelloWorld item on the project explorer and clicking run.

Image Added

Running the file on my machine produces the following output for example:

Image Added