mjbWorld - How to Run mjbWorld on Linux

This explains how to run the program under Linux. (if you are using Windows instead - see here)

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

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
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:

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:

Jre/bin/ : jogl.dll
Jre/lib/ext/ : jogl.jar

Jre/lib/i386/ : libjogl.so
Jre/lib/ext/ : jogl.jar
(Usually JAVA_HOME points to /bin/usr/lib/java2/

Compiling the C++ version from source

See this page

metadata block
see also:


Correspondence about this page

Book Shop - Further reading.

Where I can, I have put links to Amazon for books that are relevant to the subject, click on the appropriate country flag to get more details of the book or to buy it from them.

cover I have only seen the Aug 1999 edition, so I'm not sure if my comments also apply to this later edition. It is a large book and it is not really a reference book or a tutorial, its somewhere in-between. It includes Linux programs and concepts like GNU cc, make, autoconf, RCS, Emacs. Systems Programming concepts like I/O routines, files, process control, errors, memory management, pipes, Semephores, Network and socket programming. It also covers lots of languages including C++. There is a chapter on Java and there is also a chapter on OpenGL programming. The book did not cover writing programs for a GUI such as Gnome or KDE. Also there was no information about any of the Graphical IDEs. It assumed everything is done with command line tools.

Commercial Software Shop

Where I can, I have put links to Amazon for commercial software, not directly related to this site, but related to the subject being discussed, click on the appropriate country flag to get more details of the software or to buy it from them.


This site may have errors. Don't use for critical systems.

Copyright (c) 1998-2018 Martin John Baker - All rights reserved - privacy policy.