Contents / Previous / Next


JOGL Installation

  1. Install OpenGL on your System: opengl.org

  2. Download the latest stable release (for this course version 1.1 from Sep. 2006): https://jogl.dev.java.net
  3. You need two files: jogl.jar and jogl-natives-linux.jar or jogl-natives-win32.jar or jogl-natives-macosx.jar (depending on your OS).
  4. Extract the libraries (*.so, *.dll or *.jnlib) from jogl-natives-*.jar: jar xvf jogl-natives-*.jar
  5. Set the binary search path environment variable PATH and the CLASSPATH variable
    to the directory where you store the jogl.jar and the library files.
    [Linux/Unix]: Set and export PATH and CLASSPATH in /etc/profile.local . Add the "." the CLASSPATH:
    CLASSPATH=$CLASSPATH:/usr/local/src/jogl/jogl.jar:.
    [Windows-DOS]: Arbeitsplatz ->(linke Maus Taste)-Eigenschaften -> Umgebungsvariablen.


Links and Opinions form the internet about the Installation of JOGL

http://www.inf.hs-anhalt.de/~wmueller/JOGL.html

Installation von JOGL
Zur allgemeinen Nutzung von JOGL in eigenen Programmen lässt sich JOGL als Erweiterung der Standard-Java-Virtual-Machine installieren. Hieru sind die folgenden Schritte notwendig:

    * Herunterladen von jogl.jar und des JOGL Natives Archiv (jogl-natives-windows.jar im Fall von Windows, jogl-natives-linux im Fall von Linux und jogl-natives-macos.jar im Fall von MacOS)
    * Kopieren von jogl.jar in das Verzeichnis jre/lib/ext im J2SE-Verzeichnis (Bei Standard Java-Installationen: C:\Programme\J2SE)
    * Entpacken von jogl-natives-linux.jar mit einem ZIP-fähigen Archivprogramm (z.B. winZip, unzip, etc.) (Ja! Das ist eine gültige ZIP-Datei)
    * Kopieren von jogl.dll nach jre/lib/i386/im J2SE-Verzeichnis

In manchen Fällen ist das entsprechende Verzeichnis jedoch schreibgeschützt und das beschriebene Vorgehen nicht anwendbar. In diesem Fall müssen JAR-File und DLL-Bibliothek in einem eigenen Verzeichnis abgelegt werden. Dieu Java-VM muss dann beim Aufruf informiert werden, die entsprechenden Archive mit zu verwenden. Im Fall des JAR_Archivs geschieht dies durch Angabe des CLASSPATH, im Fall der DLL durch entsprechendes Setzen des Proprety java.library.path, also z.B:

java -classpath "C:\\Temp\\jogl.jar" -Djava.library.path="C:\\Temp\\java-natives-windows.dll" test.java





http://www.informatik.uni-mainz.de/lehre/cg/SS2005_CGII/SS2005_CGII.html

3. OpenGL für Java:
3.1 cp jogl.jar /usr/local/jdk1.5.0/jre/lib/ext/.
3.2 unzip jogl-natives-linux.jar ( ja das ist eine gültige zip datei )
3.3 cp jogl.dll  /usr/local/jdk1.5.0/jre/lib/i386/.





http://www.lifl.fr/west/aoltools/

Installation of Jogl

    * Windows Installation Instructions
         1. Download the JOGL Windows binaries of June 2005 (jogl-natives-win32.jar).
         2. Download the jogl classes file (jogl.jar)
         3. Uncompress the file: jar xvf jogl-natives-linux.jar.
         4. Locate the Java SDK or JRE installation on your machine. These can typically be found at "C:\Java" or "C:\Program Files\Java\". NOTE: You may have several SDKs/JREs installed on your machine so make sure that you locate the one that your compiler/IDE is using. To be safe you can always install it for each version on your system.
         5. Copy "jogl.dll and jogl_cg.dll" into the "\bin" directory for the Java SDK or JRE installed on your machine (i.e. C:\[jre_location]\bin\jogl.dll or C:\[jdk_location]\jre\bin\jogl.dll).
         6. Copy "jogl.jar" into the "\lib\ext" directory for the Java SDK or JRE installed on your machine (i.e. C:\[jre_location]\lib\ext\jogl.jar).
    * Linux Installation Instructions
         1. Download the JOGL Linux binaries of June 2005 (jogl-natives-linux.jar)
         2. Download the jogl classes file (jogl.jar)
         3. Uncompress the file: jar xvf jogl-natives-linux.jar.
         4. Locate the Java SDK or JRE installation on your machine. NOTE: You may have several SDKs/JREs installed on your machine so make sure that you locate the one that your compiler/IDE is using. To be safe you can always install it for each version on your system.
         5. Copy "libjogl.so and libjogl_cg.so" into the "/lib/i386/" directory for the Java SDK or JRE installed on your machine (i.e. [jre_location]/lib/i386/libjogl.so or [jdk_location]/jre/lib/i386/libjogl.so).
         6. Copy "jogl.jar" into the "/lib/ext/" directory for the Java SDK or JRE installed on your machine (i.e. [jre_location]/lib/ext/jogl.jar).







http://wwwmath.uni-muenster.de/u/tr/ss04/cg/


Bei der Installation von JOGL ist folgendermaßen vorzugehen: Das J2SDK
1.4.2 muss installiert werden.  JOGL muss heruntergeladen und entpackt werden.
Die Dateien aus dem JOGL-Archiv müssen in die folgenden Ordner kopiert werden:
Plattformabhängige Dateien (*.so, *.dll oder *.jnlib) müssen in einen Ordner
des java.libary.path kopiert werden. Bei Linux ist dies in der Regel
jre/lib/i386/, bei Windows jre/bin/ und bei Mac OS X ~/Library/Java/Extensions.
Die Datei jogl.jar muss in den Ordner jre/lib/ext/ kopiert werden (Bei Mac OS X
in ~/Library/Java/Extensions).  Die Installation kann überprüft werden, indem
die Datei GLTest.java compiliert und ausgeführt wird.






http://opengl.j3d.org/installing.html

JOGL Installation
Step 1

Install the Java runtime (or JDK if you are a developer) 1.4.2_01 or later. For
example, the Win32 default directory of for the JRE is: C:\Program
Files\JavaSoft\Jre\1.4.2_01\

Note that there is a hard requirement for a minimum of 1.4.2_01. Anything
earlier than this is not acceptable and JOGL is likely to crash your machine.
Step 2

This currently requires manually downloading the latest betas of JOGL and
installing it to the same directory. JOGL does not have a nice pretty installer
currently, so you're left with just a collection of JAR files that you have to
extract and place in the right locations.

So, first you need to head over here to download a copy of JOGL. First click on
the little plus sign for the area that you want (eg Release Builds 2006). Next,
click on the link for the particular version you want. Do not click on the
little plus sign. You'll get nothing. Now that you have the list of files
available for that build and you will need to download two files. First,
download the jogl.jar file and then the appropriate foo-natives JAR file for
the platform that you want to run on.

Go to the directory that you earlier installed the JDK/JRE into. Extract the
jogl.jar file into the lib/ext directory underneath the main installation
directory. For example, if you installed the JRE to

C:\Program Files\JavaSoft\Jre\1.4.2_01\

Then you will need to place the contents of jogl.jar into:

C:\Program Files\JavaSoft\Jre\1.4.2_01\lib\ext

Next go to the appropriate natives JAR file that you downloaded and extract it
to the bin directory in the same area. eg:

C:\Program Files\JavaSoft\Jre\1.4.2_01\bin

You should now be ready to run any JOGL-based demos.

As a word of caution: Although these instructions suggest installing into the
JRE directly, frequently this is an unwise thing to do if you are going to be
using other 3rd-party applications. For example, Java WebStart will have
conflicts with this installed version, as well as any applications that come
with their own installed version (or in our case if you want to use our ported
version for SWT). We recommend that you install JOGL into a separate directory
and modify your system CLASSPATH and LD_LIBRARY_PATH/PATH to point to the
appropriate directory. This should avoid any future issues of crashing or
incompatible libraries within other applications.








https://dev.njh6.de/wiki/index.php/Doc:Java_und_OpenGL

Die Installation von JOGL verläuft wesentlich angenehmer.

JOGL herunterladen:

 cd /usr/src/java
 wget http://download.java.net/media/jogl/builds/nightly/jogl.jar
 wget http://download.java.net/media/jogl/builds/nightly/jogl-natives-linux.jar

JOGL in das Java-SDK einbinden:

 cd /usr/packages/j2sdk1.4.2_10
 cp /usr/src/java/jogl.jar jre/lib/ext/
 cd jre/lib/i386
 unzip /usr/src/java/jogl-natives-linux.jar libjogl*.so

Fertig! 






http://www.cs.mu.oz.au/380/project/jogl/JSR-231beta02_4January2006/Installation.txt

Instructions for installing JOGL on a Windows XP Computer
=========================================================

Step 1: Move the following jar files:
------
jogl.jar
jogl-demos.jar
jogl-demos-data.jar 
jogl-demos-util.jar

to this directory (or equivalent directory where Jre is installed) :
C:\Program Files\Java\JOGL

Step 2: Extract the following (executable) files using the following command 
------
tar xvf jogl-natives-win32.jar

The following files are extracted:
extracted: jogl.dll
extracted: jogl_cg.dll
extracted: META-INF/manifest.mf
extracted: META-INF/zigbert.sf
extracted: META-INF/zigbert.rsa

Move these files to the following (or where-ever you want to install JOGL) directory:
C:\Program Files\Java\JOGL\bin

Step 3: Edit the CLASSPATH variable: 
------
Right-click My Computer, and then click Properties. 
Click the Advanced tab. 
Click Environment variables. 
Edit the CLASSPATH system environment variable and add the following (to end of list):
CLASSPATH=xxxx;
C:\Program Files\Java\JOGL\lib\jogl.jar;
C:\Program Files\Java\JOGL\lib\jogl.jar;
C:\Program Files\Java\JOGL\lib\jogl-demos.jar;
C:\Program Files\Java\JOGL\lib\jogl-demos-data.jar;
C:\Program Files\Java\JOGL\lib\jogl-demos-util.jar 

Step 4: Edit the PATH variable:
------
Right-click My Computer, and then click Properties. 
Click the Advanced tab. 
Click Environment variables. 
Edit the PATH system environment variable:
PATH=xxxx;C:\Program Files\Java\JOGL\bin;

[The following step requires Apache's "ant" facility (included here), install this from here:
 http://ant.apache.org/manual/index.html if you need to install this]

Step 5: install jogl demos
------
Unzip the following file:
jogl-demos-src.zip 

into the following (or equivalent) location:
C:\Program Files\Java\JOGL\demos\jogl-demos

cd C:\Program Files\Java\JOGL\demos\jogl-demos\make
ant

You see something like the following:
------------------------------------
Buildfile: build.xml
test.for.jogl.demos.jar:
java.class.path.validate:
init:
all:
[mkdir] Created dir: C:\Program Files\Java\JOGL\demos\jogl-demos\build\classes
[javac] Compiling 77 source files to C:\Program Files\Java\JOGL\demos\jogl-demos\build\classes
[jar] Building jar: C:\Program Files\Java\JOGL\demos\jogl-demos\build\jogl-demos.jar
[jar] Building jar: C:\Program Files\Java\JOGL\demos\jogl-demos\build\jogl-demos-util.jar
[jar] Building jar: C:\Program Files\Java\JOGL\demos\jogl-demos\build\jogl-demos-data.jar
[zip] Building zip: C:\Program Files\Java\JOGL\demos\jogl-demos\build\jogl-demos-src.zip
BUILD SUCCESSFUL

Step 6: To run the demos, read the following file:
------
cd C:\Program Files\Java\JOGL\demos\jogl-demos\demos\jogl-demos\docs\readme.html

In 380, we rely only on unextended OpenGL, so you should be able to run at least
demo's 1, 5 and 7 (but not necessarily all, read Note below). 

Note: Many of these demo's use OpenGL extensions, only supported by specific cards, 
such as Nvidia or ATI Radeon, or OpenGL version 2.0 not presently supported by Windows XP.

Important: The following jars must be included in your CLASSPATH 
(jogl-demos.jar, jogl-demos-util.jar, jogl-demos-data.jar)