Installing and starting JOELib

Get an up-to-date version of the JOELib library from the homepage at http://joelib.sourceforge.net.

Linux/Unix

  1. Get an up-to-date version of the JOELib library.

  2. Get an up-to-date version of the Ant library (see the Section called Ant - XML based makefile mechanism).

  3. Set the environent variables JAVA_HOME and ANT_HOME and extend the PATH variable with $ANT_HOME/bin.

    setenv JAVA_HOME /usr/local/j2sdk1.4.0
    setenv ANT_HOME ~/tmp/ant141
    setenv PATH ${PATH}:$ANT_HOME/bin
        
  4. Change your current directory to joelib/ant. Now you can compile and start an example with:

        ant compile
        ant MoleculeLoadTest
        

    You can use ant -projecthelp to get a list of other examples.

Windows 2000/NT

  1. Get an up-to-date version of the JOELib library.

  2. Get an up-to-date version of the Ant library (see the Section called Ant - XML based makefile mechanism).

  3. Open a MS-DOS box.

  4. Set the environent variables JAVA_HOME and ANT_HOME and extend the PATH variable with $ANT_HOME/bin.

    set JAVA_HOME=C:\Programme\j2sdk1.4.0
    set ANT_HOME=C:\lib\java\ant1.4.1
    set PATH=%PATH%:%ANT_HOME%\bin
        
  5. Change your current directory to joelib/ant. Now you can compile and start an example with:

        ant compile
        ant MoleculeLoadTest
        

    You can use ant -projecthelp to get a list of other examples.

Windows 95/98/XP

Unfortunately Windows98 don't support the makefile-mechanism entirely so it's necessary to change the standard calling mechanism.

  1. Get an up-to-date version of the JOELib library.

  2. Get an up-to-date version of the Ant library (see the Section called Ant - XML based makefile mechanism).

  3. Open a MS-DOS box.

  4. Open the ant/build.xml-file and comment the following line:

    <property environment="env"/>
        

    with

    <!-- <property environment="env"/> -->
        

    Add the paths to your Java Development Kit and Ant with the following lines:

    <property name="env.JAVA_HOME" value="C:/Programme/j2sdk1.4.0" />
    <property name="env.ANT_HOME" value="C:/lib/java/ant1.4.1" />
        
  5. Change your current directory to joelib. Now you can compile and start an example with:

        build.bat compile
        build.bat MoleculeLoadTest
        

    You can use build.bat -projecthelp to get a list of other examples.

If you were using a batch file it's important to use the '\'-slash under Windows98 ! Windows XP works also with the '/'-slash.