From: Erwin V. <er...@cs...> - 2000-03-07 18:55:36
|
Hello, There seems to be a problem with the new GL4Java. I installed the win32 libs and new .jar file and 'java gl4java.GLContext' works correctely. However, my GL4Java application (Java MD3 Model Viewer - http://fragland.net/md3view) doesn't work anymore. When I resize the application (which resises the GLCanvas), the following exception is thrown: Exception occurred during event dispatching: java.lang.UnsatisfiedLinkError: gljResizeNative at gl4java.GLContext.gljResizeNative(Native Method) at gl4java.GLContext.gljResize(GLContext.java:1478) at gl4java.awt.GLCanvas.sDisplay(GLCanvas.java:428) at gl4java.awt.GLCanvas.paint(GLCanvas.java:325) at sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:117) at java.awt.Component.dispatchEventImpl(Component.java:2447) at java.awt.Component.dispatchEvent(Component.java:2307) at java.awt.EventQueue.dispatchEvent(EventQueue.java:287) at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:101) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:92) at java.awt.EventDispatchThread.run(EventDispatchThread.java:83) I think this is enought info for someone to pinpoint the problem :-) Erwin 'KLR8' Vervaet er...@cs... http://www.cs.kuleuven.ac.be/~erwin |
From: Sven G. <sgo...@ja...> - 2000-03-07 20:29:31
Attachments:
gl4java2.2.0.0-winpatch-1.zip
|
Dear GL4Java Users, I am sorry for your inconvinience ! There IS a bug in the WINDOWS version for SUN/Netscape JVM Only, while resizing the canvas/window ! The prototype in gl4java.GLContext is: private final native void gljResizeNative( boolean isOwnWindow, int disp, int thisWin, int width, int height ); The native implementation for Windows is: JNIEXPORT void JNICALL Java_gl4java_GLContext_gljResizeNative( JNIEnv *env, jobject obj, jint width, jint height) { } So the native functions could not be found in the native library ! I send you a temporaery java-bugfix for the !!!!! WINDOWS version for SUN/Netscape JVM ONLY !!!!, because I am at a customer and I do not have a Win32 compiler avaiable :-( Next weekend, I will release the bugfix (new Win32 library) on the website ! I only add the binaries gl4java/GLContext.class gl4java/GLContext$1.class gl4java/GLContext$2.class to the zip - archive ! Please patch the gl4java.jar files by yourself for this moment ! - OR do not RESIZE ! The source changes for gl4java/GLContext.java.skel: --------------------------------------------------------------------------- public final void gljResize(int width, int height) { if ( ! isInitialized || !glEnabled ) return; if ( useMSJDirect ) { try { Point p = _comp.getLocationOnScreen(); gl4java.system.GljMSJDirect.moveOGLWindowNative( windowHandle,p.x,p.y,width,height); } catch (Exception e) { } } else gljResizeNative( width,height); } private final native void gljResizeNative( int width, int height ); --------------------------------------------------------------------------- Please remind, that this patch works for the !!!!! WINDOWS version for SUN/Netscape JVM ONLY !!!! THANXS ! Happy hunting ! Yours, Sven Goethel -- mailto:sgo...@ja... www: http://www.jausoft.com voice: +49-521-2399440, +49-170-2115963; fax: +49-521-2399442 |
From: Sven G. <sgo...@ja...> - 2000-03-14 06:41:20
|
Because of the found bug in the Win32 SUN/Netscape JVM version GL4Java 2.2.0.0 - the bugfixed version is now online ! Thanxs a lot ! Yours, Sven Goethel -- mailto:sgo...@ja... www : http://www.jausoft.com voice : +49-521-2399440, +49-170-2115963; fax: +49-521-2399442 |
From: Exbang I. <ex...@wa...> - 2000-03-14 08:22:13
|
Hi all, just subscribed to this forum. First of all congratulations to Sven for GL4Java, the demos look very good We are a "garage type" startup developing a MIDI and audio sequencer (a big project, similar to Cubase in some respects). Most of the code is C++ and the project is divided up into many dlls. Currently looking for a PIGUI (platform-independent GUI) solution, I am trying to evaluate if we couldn't write the GUI-related dlls in Java/Swing/OpenGL and compile them to native code with tools such as Excelsior JET or Gnu GCJ, or Symantec VisualCafé's native compiler. Does this look a viable solution, anybody got any experience with compiling GL4Java projects to native ? -- Greetings, Michel ......................................................................... Michel Jullian Directeur General email ex...@wa... Exbang Industries S.A. Mas Chauvain route de Villeneuve tel +33(0) 499 529 878 Maurin 34970 Lattes France fax +33(0) 499 529 879 ......................................................................... |