Login  Register

Re: JOGL Application crashes on Windows 7 but runs fine in Eclipse

Posted by Sven Gothel on Dec 21, 2011; 3:38pm
URL: https://forum.jogamp.org/JOGL-Application-crashes-on-Windows-7-but-runs-fine-in-Eclipse-tp3600585p3604362.html

On Wednesday, December 21, 2011 10:38:29 AM Sandhase [via jogamp] wrote:

>
> Hi gouessej,
>
> Hm, I excpected this answer.
>
> I downloaded new RC5 (jogl2.0-b45-windows-amd64) but application stopped
> working.
>
> I'm wondering about the missing of newt.all.jar and nativewindow.all.jar.
> They don't exist anymore in the download. Just in the "atomic" folder there
> are some newt and nativewindow jars but I don't need them anymore?
No, only the *all* JAR files are required. Only if you like to slice and dice
it to a bare minimum -or- want to add JOGL's Cg you may need to add (some)
atomic JARs.

Additionally you might want to attach the source files to their respective JAR files.

>
> I use now jogl.all.jar and gluegen-rt.jar. These two jars added to the
> project and in java.library.path I added the folder containing the .dll's
> and the jogl.natives and gluegen-rt.natives jar's
You don't even need to add those DLLs anymore, or their respective path,
since we load the native JAR files automatically.

>
> Well, I changed Animator to AnimatorBase and FPSAnimator is still the same
> (Just another import). Afterwards i changed all BufferUtils to
> com.jogamp.common.nio.Buffers and the methods "newFloatBuffer" to
> "newDirectFloatBuffer".

Animator still exists, both Animator and FPSAnimator extend AnimatorBase.

>
> All libraries are found starting it from eclipse and the window containig
> the opengl drawing appears but as soon as i drop data on the window that
> should be displayed nothing works. All i can do is moving the complete
> application window. All other UI elements do not react on any user inputs
> and i have to kill the application in the eclipse console.
Sorry, I don't understand this use-case. 'Drop data' etc .. don't know what you mean.

>
> Any idea what changes are als necessary? I have to say that i did not
> developed the jogl part of the application.
>
>
> ANother additional information to the first post:
> I need not run the application in eclipse, it is enough to have eclipse open
> to succed in loading the opengl window in the deployed application

The integration of JOGL in Eclipse, ie how to deploy it as a package for Eclipse
should be as simple as described above: Add the *all* JAR files to the classpath, done.

>
> br
> sandhase