Cannot find extracted native libraries

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

Cannot find extracted native libraries

runiter
In one of our Mac computers we get the following exception.
It appears that after extracting the native files jogl cannot find them!
Any ideas why this is happening?

Here is the exception:

java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.sun.javaws.Launcher.executeApplication(Launcher.java:1528)
        at com.sun.javaws.Launcher.executeMainClass(Launcher.java:1466)
        at com.sun.javaws.Launcher.doLaunchApp(Launcher.java:1277)
        at com.sun.javaws.Launcher.run(Launcher.java:117)
        at java.lang.Thread.run(Thread.java:637)
Caused by: java.lang.UnsatisfiedLinkError: /private/var/folders/mE/mEUDAk00FsCuJQbxmIxxrk+++TM/-Tmp-/jogamp_0000/file_cache/jln7551921462927477829/jln5317480986996924740/libnativewindow_awt.jnilib:  Library not loaded: @rpath/libjawt.dylib   Referenced from: /private/var/folders/mE/mEUDAk00FsCuJQbxmIxxrk+++TM/-Tmp-/jogamp_0000/file_cache/jln7551921462927477829/jln5317480986996924740/libnativewindow_awt.jnilib   Reason: image not found
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1861)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1741)
        at java.lang.Runtime.load0(Runtime.java:770)
        at java.lang.System.load(System.java:1020)
        at com.jogamp.common.jvm.JNILibLoaderBase.loadLibraryInternal(JNILibLoaderBase.java:434)
        at com.jogamp.common.jvm.JNILibLoaderBase.access$000(JNILibLoaderBase.java:59)
        at com.jogamp.common.jvm.JNILibLoaderBase$DefaultAction.loadLibrary(JNILibLoaderBase.java:90)
        at com.jogamp.common.jvm.JNILibLoaderBase.loadLibrary(JNILibLoaderBase.java:328)
        at jogamp.nativewindow.NWJNILibLoader.access$000(NWJNILibLoader.java:39)
        at jogamp.nativewindow.NWJNILibLoader$1.run(NWJNILibLoader.java:51)
        at jogamp.nativewindow.NWJNILibLoader$1.run(NWJNILibLoader.java:42)
        at java.security.AccessController.doPrivileged(Native Method)
        at jogamp.nativewindow.NWJNILibLoader.loadNativeWindow(NWJNILibLoader.java:42)
        at jogamp.nativewindow.jawt.JAWTUtil.<clinit>(JAWTUtil.java:183)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:247)
        at javax.media.nativewindow.NativeWindowFactory$2.run(NativeWindowFactory.java:232)
        at javax.media.nativewindow.NativeWindowFactory$2.run(NativeWindowFactory.java:229)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.media.nativewindow.NativeWindowFactory.initSingleton(NativeWindowFactory.java:229)
        at javax.media.opengl.GLProfile.initProfilesForDefaultDevices(GLProfile.java:1385)
        at javax.media.opengl.GLProfile.access$100(GLProfile.java:76)
        at javax.media.opengl.GLProfile$1.run(GLProfile.java:174)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.media.opengl.GLProfile.initSingleton(GLProfile.java:140)
        at javax.media.opengl.GLProfile.getProfileMap(GLProfile.java:1887)
        at javax.media.opengl.GLProfile.get(GLProfile.java:818)
        at javax.media.opengl.GLProfile.get(GLProfile.java:847)
        at javax.media.opengl.GLProfile.getMaxFixedFunc(GLProfile.java:653)
        at com.ardor3d.framework.jogl.CapsUtil.getCapsForSettings(CapsUtil.java:34)
        at com.ardor3d.framework.jogl.JoglAwtCanvas.<init>(JoglAwtCanvas.java:38)
        at org.concord.energy3d.scene.SceneManager.<init>(Unknown Source)
        at org.concord.energy3d.scene.SceneManager.<clinit>(Unknown Source)
        at org.concord.energy3d.MainApplication.main(Unknown Source)
        ... 9 more
Saeid Nourian, Ph.D. Eng. | Graphing Calculator 3D
Reply | Threaded
Open this post in threaded view
|

Re: Cannot find extracted native libraries

Sven Gothel
Administrator
On 11/28/2012 05:27 PM, runiter [via jogamp] wrote:
> In one of our Mac computers we get the following exception.
> It appears that after extracting the native files jogl cannot find them!
> Any ideas why this is happening?
>
> Here is the exception:
>

Caused by: java.lang.UnsatisfiedLinkError: /private/var/folders/mE/mEUDAk00FsCuJQbxmIxxrk+++TM/-Tmp-/jogamp_0000/file_cache/jln7551921462927477829/jln5317480986996924740/libnativewindow_awt.jnilib:  Library not loaded: @rpath/libjawt.dylib   Referenced from: /private/var/folders/mE/mEUDAk00FsCuJQbxmIxxrk+++TM/-Tmp-/jogamp_0000/file_cache/jln7551921462927477829/jln5317480986996924740/libnativewindow_awt.jnilib   Reason: image not found
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1861)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1741)
        at java.lang.Runtime.load0(Runtime.java:770)
        at java.lang.System.load(System.java:1020)
        at com.jogamp.common.jvm.JNILibLoaderBase.loadLibraryInternal(JNILibLoaderBase.java:434)
        at com.jogamp.common.jvm.JNILibLoaderBase.access$000(JNILibLoaderBase.java:59)

Looks like the depending @rpath/libjawt.dylib could not be found.

Please state the OS, Java and JOGL version.

Please run 'etc/test_dbg.sh' as described in Wiki/FAQ/Bugreport,
due to a bug I just recognized pls change the script as follows:
  -CLASSPATH=jar/gluegen-rt.jar:jar/jogl.all.jar
  +CLASSPATH=jar/gluegen-rt.jar:jar/jogl-all.jar

complete:
  (7z x jogamp-all-platforms.7z; cd jogamp-all-platforms)

  jogamp-all-platforms$ bash etc/test_dbg.sh >& test_dbg.log

Please zip the log file and attach it to your bug report (or here in this forum).

~Sven


signature.asc (909 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Cannot find extracted native libraries

runiter
Here is the log file you asked for:

test_dbg.log
Saeid Nourian, Ph.D. Eng. | Graphing Calculator 3D
Reply | Threaded
Open this post in threaded view
|

Re: Cannot find extracted native libraries

Sven Gothel
Administrator
On 11/28/2012 07:11 PM, runiter [via jogamp] wrote:
> Here is the log file you asked for:
>
> test_dbg.log <http://forum.jogamp.org/file/n4027278/test_dbg.log>

Thank you, the log is very helpful. Will try to reproduce and fix (loadig
libjawt).
However, it's interesting that my setup did not fail.
Our test machine is very similar.

~Sven



signature.asc (909 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Cannot find extracted native libraries

runiter
Yes it is strange because in our other Mac laptops it works great too. But not in this one.

Hope you can find a solution soon because we have a big demo on Monday with 20+ students and although it works in most of our machine we can't conduct our demos unless it works in all of our machines.

Thanks in advance!
Saeid Nourian, Ph.D. Eng. | Graphing Calculator 3D
Reply | Threaded
Open this post in threaded view
|

Re: Cannot find extracted native libraries

Sven Gothel
Administrator
On 11/29/2012 03:54 PM, runiter [via jogamp] wrote:
> Yes it is strange because in our other Mac laptops it works great too. But not
> in this one.
>
Just for the sake of being sure installation is 'sane'
on the offending machine:
  - have you experimented w/ Java7 and Java6 installations?
    - maybe something got messed up ?
    - maybe the internet-plugin and commandline JRE somehow mixing things up ?
    - note: java6 usually depends on .jnilib, not .dylib - Java7 uses .jnilib
  - can you test w/ Java7 [on that machine] ?
  - can you completly remove the JRE/JVM [on the offending machine] - and reinstall it ?

> Hope you can find a solution soon because we have a big demo on Monday with
> 20+ students and although it works in most of our machine we can't conduct our
> demos unless it works in all of our machines.

Do you have something for the public as well ?
Maybe even open source demos ?

Will look at it in detail after fighting w/ SWT mess.

>
> Thanks in advance!

You are very welcome.

~Sven





signature.asc (909 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Cannot find extracted native libraries

runiter
Certainly, everything the company I work for develops is free and open source.

Here is the full version of our program both in webstart form and downloadable zip form:

http://energy.concord.org/energy3d/index.html
Saeid Nourian, Ph.D. Eng. | Graphing Calculator 3D
Reply | Threaded
Open this post in threaded view
|

Re: Cannot find extracted native libraries

Sven Gothel
Administrator
On 11/29/2012 04:50 PM, runiter [via jogamp] wrote:
> Certainly, everything the company I work for develops is free and open source.
>
> Here is the full version of our program both in webstart form and downloadable
> zip form:
>
> http://energy.concord.org/energy3d/index.html

Thank you - KUDOS to your employer for following an open source model!

Maybe you don't mind sending me a few pieces (text, intro, screenshot)
suitable for the http://jogamp.org/jogl/ page ?

~Sven



signature.asc (909 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Cannot find extracted native libraries

runiter
Certainly, I'll prepare some screenshots and will send them to you. by email?
Saeid Nourian, Ph.D. Eng. | Graphing Calculator 3D
Reply | Threaded
Open this post in threaded view
|

Re: Cannot find extracted native libraries

Sven Gothel
Administrator
On 11/29/2012 05:52 PM, runiter [via jogamp] wrote:
> Certainly, I'll prepare some screenshots and will send them to you. by email?

Yes, pls.

Ofc - you could also edit the webpage directly (jogl/www/index.html),
while cloning jogl it's git repo and sending me a pull request.

As you wish .. Thank you.

[Maybe adding a note about the technology you use ..]

~Sven



signature.asc (909 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Cannot find extracted native libraries

runiter
excellent, will do.

any progress on the aforementioned problem?

I tried extracting all the jnilib files and putting them in folder where jar file is but still doesn't work.

It seem to be looking for "libjawt.dylib" and can't find it. any ideas why?
Saeid Nourian, Ph.D. Eng. | Graphing Calculator 3D
Reply | Threaded
Open this post in threaded view
|

Re: Cannot find extracted native libraries

runiter
I fixed it!
Looks like java was messed up for some reason. Upgrading Java to 1.6.0_37 in the Mac OS X laptop fixed all the issues in it.

Now I just need to fix the problem with Intel graphics card in windows machine in the other forum.

Thanks for your time
Saeid Nourian, Ph.D. Eng. | Graphing Calculator 3D