Re: Need help setting up and building JOGL project
Posted by
Sven Gothel on
Mar 31, 2012; 7:41pm
URL: https://forum.jogamp.org/Need-help-setting-up-and-building-JOGL-project-tp3873346p3874028.html
On 03/31/2012 04:12 PM, Wade Walker [via jogamp] wrote:
>
>
> Hi Neil,
>
> I'm not sure if the new JAR auto-loading feature (the one that loads the
> *-natives-*.jar files at runtime) can get them from inside another JAR.
Yes, it would work if all JOGL JARs are in the encapsulating one in the same
path, we have a unit test for that here:
<
https://jogamp.org/chuck/view/fwd/job/gluegen/536/label=linux-x86_64-nvidia/testReport/com.jogamp.common.util/TestJarUtil/testJarUtilJarInJar01/>
However, I only tested it manually with an eclipse build as follows:
https://jogamp.org/bugzilla/show_bug.cgi?id=522#c7~Sven
> You
> might try putting the natives JARs beside (instead of inside) your code JAR
> in the same directory -- I think that's how it's supposed to work at this
> point.
>
> Also, you should put both the i586 and amd64 versions of the natives JARs
> there, so that JOGL can pick up one or the other depending on your platform
> and what JVM is being used. You can't mix and match a 32-bit JVM with 64-bit
> natives or vice versa, so you need both types of natives JARs available to
> guarantee that you'll always be able to run, no matter how the user invokes
> your program.
>
> I'm just starting a long vacation where I update our wiki, so I'll put up
> some info about how to deploy like this once I do a few experiments.
>