Re: Using JOGL in Eclipse
Posted by
Andi on
Nov 04, 2011; 1:16pm
URL: https://forum.jogamp.org/Using-JOGL-in-Eclipse-tp3476354p3480076.html
Launch4j or
JEStart (the launcher I've written some years ago) are a nice thing, but they do not tackle the original problem.
What I am looking for is an automatic way for the JVM to find the right native libs. Currently, I can for example not just use the same java.library.path for both versions of windows (32bit and 64bit), because the DLL names collide and are incompatible. But I want a single windows distribution for my program.
You are right that a launcher like Launch4J or JEStart could determine the right version and set the correct java.library.path. However, I see
that the Java Platform (Webstart) is already able to do that automatically, as you can see if you have a look at the JNLP files! I was wondering if I can add those JNLP files "to my classpath" so that the JVM finds the right native libraries automatically.
Another advantage is, that I would not need a separate Eclipse runtime configuration for each platform...
Any ideas? If not, I can do it as proposed (thanks for all your tips!), however it feels like a workaround.