Download and install Java for Linux
If you have not already done so load the latest version of Java for linux from the blackdown website.
Unpack it to suitable directory:
cd /usr/local
gunzip /jdk-1_4-rc3-linux-i386_sh.gz
./jdk-1_4-rc3-linux-i386_sh
Make sure path is set:
export PATH=/usr/local/jdk1.4/bin:$PATH
If required Download and install Mesa
If your Linux insallation does not have OpenGL support you will need to install Mesa. If you already have OpenGL installed then skip this stage, for example I am using Red Hat 6.2 and I did not need to install Mesa.
If you dont have it already, install Mesa from their website
Mesa is a 3-D graphics library with an API which is very similar to that of OpenGL
Download MesaLib-3.3.tar.gz and optionally MesaDemos-3.3.tar.gz
Unpack with:
gzcat MesaLib-3.3.tar.gz | tar xf -
gzcat MesaDemos-3.3.tar.gz | tar xf -
gunzip MesaLib-3.2.tar.gz ; tar xf MesaLib-3.2.tar
gunzip MesaDemos-3.2.tar.gz ; tar xf MesaLib-3.2.tar
or
tar zxf MesaLib-3.2.tar.gz
tar zxf MesaDemos-3.2.tar.gz
3 download mjbWorld (it may make it easier to unwrap if you use Linux packaged version) from here
gunzip mjbWorld_beta327_tar.gz
tar -xcf mjbWorld_beta327_tar
make sure you run the program from a graphical terminal window:
- export PATH=/usr/local/mjbWorld:$PATH,
- export PATH=/usr/local/jdk1.4/bin:$PATH
- export CLASSPATH=/usr/local/jdk1.4/jre/lib/ext:$CLASSPATH
- export CLASSPATH=/usr/local/mjbWorld/mjbWorld.jar:$CLASSPATH
- cd /usr/local/mjbWorld
- /usr/local/jdk1.4/bin/java mjbWorld.mjbWorld
4 Copy the jogl.dll and jogl.jar files into the appropriate library path for your system. This will be in the following subdirectories under the directory where you installed the Java SDK or JRE:
Win32
Jre/bin/ : jogl.dll
Jre/lib/ext/ : jogl.jar
Linux:
Jre/lib/i386/ : libjogl.so
Jre/lib/ext/ : jogl.jar
(Usually JAVA_HOME points to /bin/usr/lib/java2/




