gluegen native libs JAR naming

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

gluegen native libs JAR naming

WL Chiu
Hello,

I am wondering if the JAR file name for the gluegen-rt's native libraries is hardcoded?

I was playing with gluegen under Win7 (64bit).  The native libraries are packaged as "gluegen-rt-natives-windows-amd64.jar" in this case.  I tried to repackaged the gluegen-rt.dll with other native DLLs into another JAR, and received the typical linking error from JVM:
"no gluegen-rt in java.library.path"

Then I tried to rename the jar file, from "gluegen-rt-natives-windows-amd64.jar" to "gluegen-rt-natives-windows-amd.jar" as an example.  I received the same error from JVM, with or without "-Djava.library.path=" option.

Many thanks,

WL Chiu


Reply | Threaded
Open this post in threaded view
|

Re: gluegen native libs JAR naming

Wade Walker
Administrator
Yes, it looks like it's hardcoded in the file com.jogamp.common.os.Platform.java.
Reply | Threaded
Open this post in threaded view
|

Re: gluegen native libs JAR naming

Sven Gothel
Administrator
On 05/19/2012 08:41 PM, Wade Walker [via jogamp] wrote:
> Yes, it looks like it's hardcoded in the file com.jogamp.common.os.Platform.java.

Only the os.and.arch suffix is hardcoded,
otherwise it picks up the basename from the JAR file
containing the code for the native libraries.

http://jogamp.org/jogl/doc/deployment/JOGL-DEPLOYMENT.html#NativeJARFileNameConvention

~Sven
Reply | Threaded
Open this post in threaded view
|

Re: gluegen native libs JAR naming

WL Chiu
Thank you both for the clarification!

WL Chiu