FANDOM


NetLogo 3.1.4 is used for M366 as of writing this.

First of all, you have to install Java 6 JRE. The runtime environment will suffice, you do not need the JDK for this particular course.

According to the NetLogo website, Java 4 will suffice. But since the course software CD-ROM is installing Java 6, I recommend to do that as well.

After that, get NetLogo 3.1.4 from here, download the does not include java variant for Other operating systems.

Extract it to wherever you'd like to install it.

LinuxEdit

Navigate to where you installed NetLogo, create a new file named netlogo, copy the following into it and make it executable:

#!/bin/bash
# the first command line parameter is the .nlogo file to open
if [ "$#" -ge "1" ]; then
	arg1=--open
	arg2=`readlink -f "$1"`
	if [ ! -f "$arg2" ]; then
		echo "Cannot open: '$1'"
		exit 1
	fi
fi
cd "`dirname "$0"`"
java -server -Xms16M -Xmx512M -jar NetLogo.jar "$arg1" "$arg2"

Now you can launch NetLogo with ./netlogo from that directory.

We'll do the same for the HubNet Client, call the file hubnet and make it executable:

#!/bin/sh
cd "`dirname "$0"`"
java -server -Xms16M -Xmx512M -jar HubNet.jar

If you want a Desktop Entry for NetLogo, create one named netlogo.desktop with the following content (paths altered as necessary):

[Desktop Entry]
Name=NetLogo
Exec=/files/software/netlogo-3.1.4/netlogo
Terminal=false
Type=Application
StartupNotify=true
Categories=Education;Science;ComputerScience

Let's do the same with hubnet.desktop and the following content:

[Desktop Entry]
Name=HubNet (part of NetLogo)
Exec=/files/software/netlogo-3.1.4/hubnet
Terminal=false
Type=Application
StartupNotify=true
Categories=Education;Science;ComputerScience

If you would like to have an application icon, make sure you have the tool unzip installed and execute the following while being in the directory where you installed NetLogo, i.e., the directory where NetLogo.jar resides:

unzip -j NetLogo.jar images/arrowhead.gif

Then, add the following line to both Desktop Entries (it's usually below the Exec line, but it doesn't matter where you put it):

Icon=/files/software/netlogo-3.1.4/arrowhead.gif

MacEdit

Feel free to contact me if you found a way to make this work on Mac. I guess it's basically the same as with Linux, so try it!

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.