Previous page Next page Home Home
SNNS Home Page JavaNNS User Manual navigation
Installation
 
Home
Introduction
Licensing
Installation
Quick Tour
Networks
Patterns
Training
Analyzing
Files

Installation

To be able to use JavaNNS, you have to have Java Runtime Environment (or JDK, which contains it) installed. JavaNNS has been tested to work with Java 1.2.2, but we recommend Java 1.3 for better performance and appearance.

The installation process differs slightly for Windows and Unix machines, therefore we describe it separately.

Windows Installation

JavaNNS is distributed as the zip file JavaNNS-Win.zip. Unzip the file into a folder of your choice. You should get:

  1. JavaNNS.jar - the Java archive file containing the JavaNNS user interface classes
  2. SNNS_jkr.dll - the SNNS kernel shared library
  3. JavaNNSini.html - JavaNNS initialization file
  4. JavaNNS.bat - batch file for starting the JavaNNS
  5. examples - folder with example networks, patterns etc.
  6. manual - folder containing this manual

In order to make JavaNNS functional, make sure that the kernel library SNNS_jkr.dll is placed in your path. There are two ways of doing it:

  1. Moving the file into a folder that is already in the path (e.g. Windows\system32; or
  2. Setting the Path system variable through the Control Panel to point to the JavaNNS folder.

Unix Installation

JavaNNS is distributed in gzipped tar archives for different operating systems, like JavaNNS-LinuxIntel.tar.gz and JavaNNS-Solaris.tar.gz. Unpack the archive into a directory of your choice. You should get:

  1. JavaNNS.jar - the Java archive file containing the JavaNNS user interface classes
  2. libSNNS_jkr.so - the SNNS kernel shared library
  3. JavaNNSini.html - JavaNNS initialization file
  4. examples - directory with example networks, patterns etc.
  5. manual - directory containing this manual

In order to make JavaNNS functional, make sure that the kernel library (libSNNS_jkr.so) is placed in your library path. There are two ways of doing it:

  1. Moving the file into a directory that is already in the library path. You can check the LD_LIBRARY_PATH environment variable to see the directories in the path; or
  2. Setting the LD_LIBRARY_PATH environment variable, e.g.
setenv LD_LIBRARY_PATH mylibrarypath

Setting up JavaNNS

Settings for JavaNNS are stored in the initialization file:

JavaNNSini.html

located in the same directory (folder) as other JavaNNS files. It is a HTML file, containing only HTML links. It's structure is simple: each link represents a JavaNNS variable, with the HREF part representing the variable value, and the text its name. For example, the link

<a href=
"file:///JNNS/manual/JavaNNS-manual.html">User Manual URL</a>

states that the HTML version of the user manual is to be found in the file JavaNNS-manual.html, placed in the directory (folder) JNNS/manual. In this link, "User Manual URL" is the variable name, and "file:///JNNS/manual/JavaNNS-manual.html" its value.

You can use an ordinary text editor for editing JavaNNSini.html.

In order to be able to access the manual from JavaNNS, you should set the value of this variable according to the path where you installed JavaNNS. Also, because JavaNNS uses a Web browser for displaying help, you should set the variable "Browser name" to point to the browser you wish to use. Use naming conventions common for your operating systems (i.e. normal slash (/) for Unix and backslash (\) for Windows) to specify the path.

You can also set the initial width and height of the JavaNNS screen by adjusting the corresponding variables.

Running JavaNNS

That's all! Now you can start JavaNNS by typing:

java -jar JavaNNS.jar

from the command prompt. If you are running Windows, you can also click the JavaNNS.bat batch file from Windows Explorer.


Last change: Igor Fischer, Thu Mar 22 09:24:25 2001 GMT
Page 4: JavaNNS-manual-3.html
navigation© 2001 Universität Tübingen