Versions Compared

Key

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

...

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

First, download the helloworld.zip file and unzip it into a directory of your choice (e.g. /Users/shamsimam/projects/comp322-s2015-projects/helloworld).

Next, import this project into IntelliJ create a new project using the File -> New Import Project Menumenu option.

Image Added

This should show a popup window as followsthe following series of popups:

Image Removed

Now, choose a name for your project and a directory location for the project. Remember to select the Java 8 SDK and click Next:

Image Removed

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

Image Removed

Image Added

Image Added

Image Added

Image Added

Image Added

Image Added

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

First enable the project view, befretrying then right-clicking on the root folder to change the module settings.

Image RemovedImage Added

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

Image RemovedImage Added

NextNotice, we need to add the library dependencydependencies have already been resolved thanks to maven:

Image RemovedImage Added

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

...