Getting you started with Eclipse Setup

After this lesson you will:

  • Know how to install and configure Eclipse
  • Have the Java Developers Kit (JDK) installed
  • Have a local Apache Tomcat server available
  • Have a running environment to build adapters

 

Required knowledge

  • None

 

Introduction

In this tutorial we’re going to get your environment up and running so you can start using the Ibis Adapter Framework (IAF) to build your own applications. Here we’ll cover the software and standard settings that we recommend.

 

Recommended software

 

Step by step

Step 1 – Unzip the JDK (JAVA 8) to a location on your hard drive.

Step 2 – Install Eclipse

Step 3 – Eclipse might ask you where to find JAVA. Look for your installation of the JDK and select the file named ‘javaw.exe’.

Step 4 – Set your Eclipse workplace somewhere that works for you, for example C:/users/Yourname. Don’t use a synced folder, like Onedrive.

Step 5 – You can now start Eclipse. Select in the menu bar the option ‘Project’ and turn on the option ‘build automatically’ by clicking on it.

Step 6 – In this tutorial we will use Ibis4example. You can find this at GitHub (link). Click on the green button ‘Clone or download’ and download the repository as ZIP. Extract the .zip and place into your Eclipse workspace.

Step 7 – Now we’ll add the Apache Tomcat server. You can do so in the tab ‘Servers’ in Eclipse. Choose the option to set up a new server. Here you select ‘Apache- Tomcat 8.5’. In the next screen you can give the location where you have Apache Tomcat installed.

Step 8 – Now you have to add the server as a web module. You can do that by selecting the ‘Module’ tab in the lower bar of your server settings. Select ‘Add Web Modules’ and click on Ibis4example.

Step 9 – Save your server settings by using ctrl-S. Check if the server is running by clicking the green arrow in the server tab. It’s possible that you’re already using the standard port, if this is the case you can change the port in the server settings in the tab ‘Ports’ to for example 8081 for localhost.

 

You now:

  • Have a working Eclipse environment that you can use to make adapters.