How to Run Java version on Windows

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

1 - Load the jdk runtime environment from (if you havn't already installed it):

http://java.sun.com/j2se/1.5.0/

(If your not compiling any programs of your own the you only need the RTE - run time enviroment, However it must be release 1.5 or better)

run the exe to install it.

2 - Load the mjbWorld class files:

Upload the mjbWorld class files (see previous page). Unzip this file. extract it using an unzipper program make sure that when you extract it you use the folder information, this should extact it to a mjbWorld directory and under are two other directories containing the icons.

(Dont unzip the mjbWorld.JAR file, leave it as it is)

Instructions for those who use WinZip to extract .zip files:

  1. Open the .zip file into WinZip.
  2. Highlight all the files and choose "Extract"
  3. In the extract dialog box, choose "use folder names".
  4. In the "folders/drives:" section make sure you are extracting to c:\ or the drive that you are using WinZip should extract and place all the files where they need to be.

Instructions for those who use ZipIt to extract .zip files:

  1. Open the .zip file into ZipIt.
  2. Highlight all the files and choose "Unzip"
  3. In the extract dialog box, choose "recreate directories".
  4. Choose "options" and make sure "recurse Zip Path info" and "recreate directories" are checked. ZipIt now should extract and place all the files where they need to be.

3 - If you are running under Windows you don't need to do anything at this stage. For other platforms you need to go to this page and get the binary file for your platform. It usually contains the platform neutral "jogl.jar" and a native library ("jogl.dll" for Win32 or "libjogl.so" for Linux etc). Put these files into the C:\mjbWorld directory (or wherever you have extracted the program files to) replacing the windows versions.

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/

5 If you are running win9x or win NT start up a DOS window

set the classpath, path and run the program by running the batch file included in the zip file or by typing the following: (note where jdk1.4 occurs replace it with jdk1.4.2 or whatever directory holds the java runtime)

SET PATH=%PATH%;C:\mjbWorld

SET CLASSPATH=%CLASSPATH%;C:\mjbWorld\mjbWorld.jar

CD C:\mjbWorld

java mjbWorld.mjbWorld

6 - If you have any problems check troubleshooting page

7 - If you want to compile from source code, there are many free development environments availible such as Eclipse and JBuilder. I have described how I setup Eclipse here.


metadata block
see also:

User Guide for JOGL

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 Java 1.4 Game Programming - This is a new book I have not seen it yet, it looks like it is trying to cover a broard subject area.

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 JBuilder - There is also a free version of Jbuilder at borland website . However its licence conditions are quite restrictive so you may prefer another java IDE.

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

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