Bug 379 - JOGL 2.0 beta JNLP applets collides with installed JOGL 1.x
Summary: JOGL 2.0 beta JNLP applets collides with installed JOGL 1.x
Alias: None
Product: Jogl
Classification: JogAmp
Component: core (show other bugs)
Version: 1
Hardware: All all
: P3 normal
Assignee: Sven Gothel
Depends on:
Reported: 2009-10-22 09:43 CEST by Sven Gothel
Modified: 2010-03-24 07:51 CET (History)
0 users

See Also:
SCM Refs:
Workaround: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Sven Gothel 2010-03-24 07:51:52 CET

---- Reported by zesharp 2009-10-22 09:43:16 ----


JOGL 2.0 beta JNLP applets collides with installed JOGL 1.x in JRE.
The typical output is shown below:

Exception in thread "thread applet-demos.applets.GearsApplet-1" 
(class: javax/media/opengl/awt/GLCanvas, 
  method: chooseGraphicsConfiguration signature: 
     Ljava/awt/GraphicsDevice;) Ljavax/media/nativewindow/awt/
Incompatible argument to function
  at demos.applets.GearsApplet.init(GearsApplet.java:18)
  at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown 
  at java.lang.Thread.run(Unknown Source)

This happens because the native function has different signature, but it also 
shown a possible issue when mixing old and new DLLs.
I'd like suggest the JOGL 2.0 native binaries(*.dll, lib*.so) has different 
names, to avoid cross loading : JOGL 1.x dlls being loaded by JOGL 2.0 jars, 
and vice-versa.

Workaround :
remove JOGL 1.x from JRE6/bin and JRE6/lib/ext

---- Additional Comments From kbr 2009-10-22 10:39:11 ----

First: the JOGL project has moved to http://kenai.com/projects/jogl. Issues should be reported there and 
not on this site.

Installing JOGL into the JRE has never been supported. See 
http://download.java.net/media/jogl/doc/userguide/ under "Local installation for development". That 
describes the suggested mechanism for developing locally with JOGL.

--- Bug imported by sgothel@jausoft.com 2010-03-24 07:51 EDT  ---

This bug was previously known as _bug_ 379 at https://jogl.dev.java.net/bugs/show_bug.cgi?id=379