Using .jnilib in a project

44 views
Skip to first unread message

Bruce Kerns

unread,
May 16, 2013, 5:00:42 PM5/16/13
to marathon...@googlegroups.com
An application I am working with has been updated to support JNI on Mac OS.
I'm having problems getting Marathon to load the .jnilib when included on the classpath of the project.

Am I missing something?

-bk

Sampathkumar R

unread,
May 17, 2013, 12:52:07 AM5/17/13
to marathon...@googlegroups.com
Can you please post more details about the problems you are facing. Are you getting any exceptions/errors in marathon or on
the console?

With regards,
Sampathkumar R


--
Looking for professional help with your Marathon projects?
Go visit: http://marathontesting.com
---
You received this message because you are subscribed to the Google Groups "Marathon Java GUI Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email to marathon-testi...@googlegroups.com.
To post to this group, send email to marathon...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Bruce Kerns

unread,
May 17, 2013, 10:47:33 AM5/17/13
to marathon...@googlegroups.com
Even with the .jnilib in the path I still get this:

[E] 14:27:33,105 T[AWT-EventQueue-0] SDK Couldn't load MAC-JNI library: java.lang.UnsatisfiedLinkError: no mac in java.library.path java.library.path=/Users/bkerns/Desktop/qa_test/xxxx/sayit/jars 

java.lang.UnsatisfiedLinkError: no mac in java.library.path

at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1758)

at java.lang.Runtime.loadLibrary0(Runtime.java:823)

at java.lang.System.loadLibrary(System.java:1045)

at com.xxxxxxxxx.sdk.impl.common.MacJNI.<clinit>(MacJNI.java:5)

at com.xxxxxxxxx.sdk.impl.common.audio.MacOsRecordingGainFloatControl.getValue(MacOsRecordingGainFloatControl.java:4)

at com.xxxxxxxxx.sdk.impl.common.audio.MacOsRecordingGainFloatControl.<init>(MacOsRecordingGainFloatControl.java:7)

at com.xxxxxxxxx.sdk.impl.common.audio.p.a(p.java:202)

at com.xxxxxxxxx.sdk.impl.common.audio.p.buildAudioDeviceViews(p.java:150)

at com.xxxxxxxxx.tools.xxxx.swingui.sk.bc(sk.java:1378)

at com.xxxxxxxxx.tools.xxxx.swingui.sk.r(sk.java:1594)

at com.xxxxxxxxx.tools.xxxx.swingui.jnlp.xxxxJnlpMain.continueInDispatchThread(xxxxJnlpMain.java:87)

at com.xxxxxxxxx.tools.xxxx.swingui.jnlp.c.run(c.java:2)

at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)

at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:708)

at java.awt.EventQueue.access$400(EventQueue.java:82)

at java.awt.EventQueue$2.run(EventQueue.java:669)

at java.awt.EventQueue$2.run(EventQueue.java:667)

at java.security.AccessController.doPrivileged(Native Method)

at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)

at java.awt.EventQueue.dispatchEvent(EventQueue.java:678)

at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)

at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)

at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

[W] 14:27:33,110 T[main] xxxxJnlpMain xxxxJnlpMain.main 

java.lang.reflect.InvocationTargetException

at java.awt.EventQueue.invokeAndWait(EventQueue.java:1122)

at java.awt.EventQueue.invokeAndWait(EventQueue.java:1099)

at javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1326)

at com.xxxxxxxxx.tools.xxxx.swingui.jnlp.xxxxJnlpMain.mmain(xxxxJnlpMain.java:98)

at com.xxxxxxxxx.tools.xxxx.swingui.cmdline.xxxxCmdlineMain.main(xxxxCmdlineMain.java:13)

Caused by: java.lang.UnsatisfiedLinkError: com.xxxxxxxxx.sdk.impl.common.MacJNI.getRecordingVolume(Ljava/lang/String;)F

at com.xxxxxxxxx.sdk.impl.common.MacJNI.getRecordingVolume(Native Method)

at com.xxxxxxxxx.sdk.impl.common.audio.MacOsRecordingGainFloatControl.getValue(MacOsRecordingGainFloatControl.java:4)

at com.xxxxxxxxx.sdk.impl.common.audio.MacOsRecordingGainFloatControl.<init>(MacOsRecordingGainFloatControl.java:7)

at com.xxxxxxxxx.sdk.impl.common.audio.p.a(p.java:202)

at com.xxxxxxxxx.sdk.impl.common.audio.p.buildAudioDeviceViews(p.java:150)

at com.xxxxxxxxx.tools.xxxx.swingui.sk.bc(sk.java:1378)

at com.xxxxxxxxx.tools.xxxx.swingui.sk.r(sk.java:1594)

at com.xxxxxxxxx.tools.xxxx.swingui.jnlp.xxxxJnlpMain.continueInDispatchThread(xxxxJnlpMain.java:87)

at com.xxxxxxxxx.tools.xxxx.swingui.jnlp.c.run(c.java:2)

at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)

at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:708)

at java.awt.EventQueue.access$400(EventQueue.java:82)

at java.awt.EventQueue$2.run(EventQueue.java:669)

at java.awt.EventQueue$2.run(EventQueue.java:667)

at java.security.AccessController.doPrivileged(Native Method)

at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)

at java.awt.EventQueue.dispatchEvent(EventQueue.java:678)

at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)

at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)

at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

Sampathkumar R

unread,
May 20, 2013, 1:46:03 AM5/20/13
to marathon...@googlegroups.com
Hi,

On osx java needs the native libraries to be prefixed with lib and suffixed with .jnilib. Can you make sure you have libmac.jnilib in the classpath.


With regards,
Sampathkumar R
Reply all
Reply to author
Forward
0 new messages