logo back up home forward   further reading more topics »

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


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/

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.

cover I have not reviewed this book, so I would be interested to hear if it is useful? I would also be interested to hear if there are any other books that may be of interest to readers of this page.

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.

cover us uk de SuSE Linux 10.3. Operating system with a wide range of applications including Open Office. A good distribution for developers as it contains KDevelop. Java, Mono, etc. Can install itself as a dual-boot system with an existing Windows OS if required. For information about installing it see this page.

Other Linux distributions

Can you help?

Please send me any improvements to here. I would appreciate ideas to make the pages more useful including error correction, ideas for new pages, improvements to wording. It helps if you quote the full URL of the page.

 

progam

I am working on a project which uses these principles, if you would like to help me with this you are welcome to join in, here:

http://sourceforge.net/projects/mjbworld/

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

Copyright (c) 1998-2008 Martin John Baker - All rights reserved.