FANDOM


LinuxEdit

Copy the JavaNNS directory from the M366 CD-ROM's install folder to where you'd like to install the software. (I presume M366 is the course you need JavaNNS for. Otherwise, locate it on the respective course CD/DVD.)

For some reason, JavaNNS uses a different JAR file on Linux than it does on Windows, which you will need to get here.

When I first tried to download it, that very page was down and I had to find it elsewhere. In case it's down again, I've uploaded the one for Linux and Linux x86-64.

Extract it into your JavaNNS folder.

Finally, open up a terminal in that folder and run the compulsory

find . -type f -exec chmod 644 {} \;
find . -type d -exec chmod 755 {} \;

Create a terrific startup script named javanss with the following content and make it executable:

#!/bin/sh
cd "`dirname "$0"`"
java -jar JavaNNS.jar $@

When you start JavaNSS for the first time, it will ask you for the kernel file. I am extremely relieved that the OU does in fact ship the one for Linux. So just say OK and you should be fine. If you do not have the kernel file for some reason, just drop me a line and I'll make it available too.

You might like to have a Desktop Entry, create one named javanns.desktop with the following contents (alter the paths):

[Desktop Entry]
Name=JavaNNS
Exec=/files/software/JavaNNS/javanns
Terminal=false
Type=Application
StartupNotify=true
Categories=Education;Science;ComputerScience

In order to use the help (Help->Contents), you first need to setup your browser in JavaNNS. Go to View->Properties... and select "Browser name" from the listbox next to "Property", if it is not selected already. The text field next to "Value" will have some sort of default. Just delete what's written there and enter the command that will start your favorite browser into it. For me, this was:

firefox

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 JavaNNS, i.e., the directory where JavaNNS.jar resides:

unzip -j JavaNNS.jar images/network.gif

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

Icon=/files/software/JavaNNS/network.gif

Pattern file issuesEdit

On Linux, JavaNNS will not support pattern files with Windows line endings (carriage return instead of linefeed). So if you see an error message like this:

javanns.KernelInterface$KernelException: SNNS - Kernel Error: Incompatible file format

Make sure you have sed installed, then execute the following command (substituded with your pattern file path) in a terminal:

sed -i 's/\r//g' /some/path/pattern.pat

==Mac == Feel free to contact me if you found a way to make this work on Mac. I fear the tough part will be to find the right JAR.

Intel-Mac JAR can be found here

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.