hello
i’ve encountered strange problem:
i’ve built my app, and when i run dist version for my platform (i586) by double clicking the jar file, it works fine.
but when i run the same app by entering java -jar “path\to\jar\my_jar.jar” it runs with errors:
Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException: java.lang.Ill
egalArgumentException: argument type mismatch
at com.sun.opengl.impl.JAWT_DrawingSurfaceInfo.newPlatformInfo(JAWT_Draw
ingSurfaceInfo.java:86)
at com.sun.opengl.impl.JAWT_DrawingSurfaceInfo.platformInfo(JAWT_Drawing
SurfaceInfo.java:52)
at com.sun.opengl.impl.windows.WindowsOnscreenGLDrawable.lockSurface(Win
dowsOnscreenGLDrawable.java:189)
at com.sun.opengl.impl.windows.WindowsOnscreenGLContext.makeCurrentImpl(
WindowsOnscreenGLContext.java:57)
at com.sun.opengl.impl.GLContextImpl.makeCurrent(GLContextImpl.java:134)
at com.sun.opengl.impl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1
82)
at javax.media.opengl.GLCanvas.maybeDoSingleThreadedWorkaround(GLCanvas.
java:412)
at javax.media.opengl.GLCanvas.display(GLCanvas.java:244)
at javax.media.opengl.GLCanvas.paint(GLCanvas.java:277)
at sun.awt.RepaintArea.paintComponent(Unknown Source)
at sun.awt.RepaintArea.paint(Unknown Source)
at sun.awt.windows.WComponentPeer.handleEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.IllegalArgumentException: argument type mismatch
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.sun.opengl.impl.JAWT_DrawingSurfaceInfo.newPlatformInfo(JAWT_Draw
ingSurfaceInfo.java:83)
... 20 more
what am i doing wrong? why in one case it works, and in other doesn’t? all dlls are in place…