SPIDER Installation

SPIDER is the new SICStus Prolog IDE, based on Eclipse.

Quick Start

Minimal instructions for installing SPIDER: if the above instructions were enough, you should now be ready to develop Prolog code with SPIDER. If not, read on for detailed installation instructions.

Introduction

SPIDER is currently in beta and some manual steps are needed to download, install and setup the necessary programs.

The screenshots below are from Eclipse 4.4.1 on Windows 7 but both SICStus and Eclipse look almost the same on other platforms, such as Linux and OS X, and the same or similar steps should be performed on all platforms. Note that the current release of SPIDER requires Eclipse 4.7 (Oxygen) or later.

Full-size versions of the screenshots will open in a separate window when the thumbnail is clicked. When you have completed the installation you can continue with the Getting Started link at the overview page.

Prerequisites

SPIDER is based on Eclipse which in turn uses Java so you need to install and configure the right version of SICStus, Java and Eclipse. This step needs to be done only once.

Install SICStus Prolog

Install Java

Java can be downloaded and installed from Oracle's Java Site or Oracle's Java Developer Site; a 64-bit version is preferable but is not the default on Windows. Java 8, or later, is required. Eclipse (and SPIDER) should work fine with Java 9. This means that you can not use the ancient Java 6 that Apple provides on OS X, you need to install the Oracle version.

Install Eclipse

Eclipse comes in many configurations. We recommend "Eclipse IDE for Java Developers" which has support for developing Java programs but any variant of Eclipse should work fine. If you installed a 64-bit version of Java (recommended) then you need a 64-bit version of Eclipse. The minimimum supported version of Eclipse is 4.7 (a.k.a Oxygen) and we recommend to always use the latest version (currently, March 2018, Eclipse 4.7.2, a.k.a. Oxygen)

Download Eclipse

We recommend (a 64-bit version of) Eclipse version 4.7 (a.k.a Oxygen) which was released in 2017. It can be downloaded from The Eclipse Site.

After downloading do not open the downloaded zip-file just yet. Instead (on Windows) you should first "unblock" the zip file (right click the file, select Properties, click the Unblock button, if present. See the screenshot below.).

Unpack Eclipse

Finally extract the files somewhere convenient. As we have mentioned repeatedly, do not use the Windows built-in zip utility. Instead use some third-party tool, like 7-zip.

You may want to create a shortcut on the desktop so that you can more easily start Eclipse, as shown in this screenshot.

Start Eclipse

Note: Some of the screenshots are from Eclipse 3.5 and things may look a little different in other versions of Eclipse.

Eclipse will ask about a location for a workspace folder. This is where Eclipse stores all files it creates. You can accept the default.

Install the SICStus IDE feature into Eclipse

Once you have Eclipse up and running you need to tell it to download and install the SICStus specific features.

Eclipse has a concept of "Update Site" which is a web location with special contents.

The update site for SPIDER is http://www.sics.se/sicstus/update/. Note that this update site does not contain any interesting human readable contents.

Select the "Install New Software" menu item from the Eclipse Help menu.

Then fill in the update site address (http://www.sics.se/sicstus/update/) and click the Add button, as shown in the screenshot.

You can give the update site a name, e.g. SICStus Prolog IDE.

Eclipse should now present a list of the features available at the update site.

Select the SICStus IDE Feature and click Next. Accept the license terms and click Finish.

Eclipse may warn about “… unsigned content.”, this can safely be ignored in this case.

Allow Eclipse to restart itself.

There should now be a Prolog-specific entry on the Eclipse Welcome Page (you can open the Welcome Page from the Help menu). You should close the Welcome page.

If SPIDER could not automatically select the SICStus Prolog to use, it will prompt you to set things up in the preferences, as shown below.

Setting up the SICStus IDE

Once SPIDER has been installed into Eclipse you need to tell SPIDER about where the SICStus program, e.g. sicstus.exe is located. Typically SPIDER will prompt you to to open the preferences, but you may also do this manually, e.g. after you have installed a more recent version of SICStus Prolog.

The SPIDER preference page "Installed SICStus Prologs" lets you search for available SICStus Prolog installations and select which one to use. If you installed SICStus Prolog in the default location, it will typically be found automatically. It is also possible to use the Search button to search for all installations within a folder tree on disk.

Once you have selected a SICStus executable, and closed the preferences dialog, a "Prolog Reference" project should be created (or updated) automatically. This is a project that refers to the library files that comes with SICStus Prolog. You should not modify this project.

Setup of SPIDER is now complete. Continue at Getting Started.


Send feedback on SPIDER.