Application Development: Installation instructions

Quick install

Download the complete zip-file for an installation in Windows here. Extract the zip-file and start the installation:

For a quick, fast install of all parts use the script install.bat from the zip-file (voor Windows): Start the script install.bat by right clicking it with the mouse, and choose Run as Administrator.

Below you find a list of software you need for the course 'Application Development' (part of module 4 of Industrial Design). If you do a manual install, install them in the order listed and read the information on this page carefully. If you used the script install.bat to do the install, then all parts should have been installed properly. In that case you do not need the info below.

Continue to the section "Install instructions for a manual install" if you want to install these yourself. Install the programs in the order as they are presented here. If you participate in the course 'Application Development' but do not follow the project of module 4, you do not have to install the Lego software and LeJOS. In that case you can stop after the install of Eclipse.
If you decide to download the software elsewhere, please make sure you use 32-bit versions of the software!

Mac users

Mac users can download the Java Development Kit (JDK) and Eclipse from the links below and install them both. Please take care you use 32-bit versions of the software! And choose "Eclipse IDE for Java Developers", (not the version with EE in the name; which is the first in the list).

The Lego software can be installed if you use this Lego Mindstorms NXT ISO-image. Make sure you allow installations from anywhere, not just from the Mac App Store and identified developers. You can view or change this setting under "Security & Privacy" in your System Preferences. Also read the "Instructions for Mac Users".

Also check this site for patches, driver updates etc. that might fix know problems.

There's also a MAC-version of LeJOS available here. Install leJOS NXJ! (so not the RCX- or EV3 version).

Install instructions for a manual install

Use these instructions if the quick-install did not work. Or one or more applications failed to install.

Java Development Kit (JDK)

Browse to the folder where you extracted the ZIP-file (if you did not extract the ZIP-file do that first!).
Browse to the folder 'Java'.
Double click on jdk-8u121-windows-i586.exe
The wizard will install the JDK and Java Runtime Environment (JRE), for the latter, a second wizard might be started.
Go through both wizards and end with 'Close'.

Eclipse

Eclipse can be executed without further installation. But, make sure the folder from the extracted ZIP-file is moved to a permanent location.
So, move the folder to "C:\Program Files (x86)" or "C:\Program Files" (you might need administrator-rights to do this).
Next, open the folder and right-click the file 'eclipse.exe' and choose "Send to > Desktop (create shortcut)".
This will create a shortcut on the Desktop which can be used to start the program.

The first time you start Eclipse, you will be asked to create a Workspace. That's the folder which will contain all your programming projects.
Use the Browse button to navigate to a folder of your choice, e.g the Documents-folder. Then, click "Make New map" and type a name, eg. 'EclipseWorkspace'. Check the option "Use this as the default ...". Press Ok.
After Eclipse is started you will see the Welcome-screen. You may close that (after reading). Eclipse is now ready for use.

Lego Mindstorms NXT software

Start the installation by double clicking setup.exe from the folder 'Lego\LegoMindstorms2.0'.
Ignore warnings about wrong Windows-versions or lack of available memory (continue by clicking Next).
You can do a default installation.

Next, install the latest driver for Lego Mindstorms NXT:
Browse to the folder 'Lego\driver_1.2\Products' followed by:
> for a 32 bits Windows version browse to LEGO_NXT_Driver_32\NXT_D01 and start LegoMindstormsNXTdriver32.msi (double click)
> for a 64 bits Windows version browse to LEGO_NXT_Driver_64\NXT_D02 and start LegoMindstormsNXTdriver64.msi (double click)

leJOS

If you have an older version installed, remove it using the uninstall.exe from the folder where leJOS is installed. (after that, restart your computer)

The Lego Mindstorms NXT driver is necessary for leJOS. If you did not install the Lego Mindstorms NXT software, you will have to install the driver from the folder Lego\driver_1.2.

If you intend to switch firmware later, please read this Blog-post.

Eclipse plugin for LeJOS

If you used the ZIP-file that comes with this course, the plugin will already be embedded in Eclipse. So an installation of the plugin will not be needed. But you might have to go to the steps below to check if everything is Ok:

In Eclipse, choose Window > Preferences from the menu, then select "LeJOS NXJ".
Check if at 'NXJ_HOME' the correct folder for leJOS is set.
If not, use the Browse button to set it to the right folder. Usually, this is C:\Program Files\LeJOS NXJ or C:\Program Files (x86)\LeJOS NXJ

If you installed Eclipse from another source, follow the steps in the section "Installing the Eclipse plugin" in this manual.

Removal of applications

Most of the applications can be removed via the normal uninstall procedure of Windows (for Windows 10: via Settings > System > Apps & Features; select the application and click 'Remove'). Eclipse can be removed by simply removing these two folders:

C:\Program Files (x86)\eclipse
C:\Users\XXXXXXXXX\.eclipse
(replace XXXXXXXXX with your username)

Please be aware that other applications may depend on Java.