[sip-comm-dev] Webstart and native libraries


#1

Hi,

I am trying to start the SC over webstart. After some trial and error
the SC will be now loaded, but there is still the problem of loading
native libraries (civil, ffmpeg and so on).

I created for every native lib (e.g.libcivil.so) a signed jar and added
it to resource section of the jnlp. The entry looks like this:
...
<nativelib href="lib/native/linux/civil.so.jar" download="eager" />
...

On startup there is the following error at the Media Bundle:
21.06.2009 11:26:52 net.sf.fmj.media.cdp.civil.CaptureDevicePlugger
addCaptureDevices
WARNUNG: com.lti.civil.CaptureException: java.lang.UnsatisfiedLinkError:
no civil in java.library.path
com.lti.civil.CaptureException: java.lang.UnsatisfiedLinkError: no civil
in java.library.path
  at
com.lti.civil.impl.jni.NativeCaptureSystemFactory.createCaptureSystem(NativeCaptureSystemFactory.java:24)
  at
net.sf.fmj.media.cdp.civil.CaptureDevicePlugger.addCaptureDevices(CaptureDevicePlugger.java:37)
  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
net.java.sip.communicator.impl.media.device.FMJCivilVideoAuto.<init>(FMJCivilVideoAuto.java:33)
  at
net.java.sip.communicator.impl.media.device.JmfDeviceDetector.detectCaptureDevices(JmfDeviceDetector.java:235)
  at
net.java.sip.communicator.impl.media.device.JmfDeviceDetector.initialize(JmfDeviceDetector.java:119)
  at
net.java.sip.communicator.impl.media.device.JmfDeviceDetector.setupJMF(JmfDeviceDetector.java:383)
  at
net.java.sip.communicator.impl.media.device.JmfDeviceDetector.detectAndConfigureCaptureDevices(JmfDeviceDetector.java:455)
  at
net.java.sip.communicator.impl.media.device.DeviceConfiguration.initialize(DeviceConfiguration.java:88)
  at
net.java.sip.communicator.impl.media.MediaServiceImpl$DeviceConfigurationThread.run(MediaServiceImpl.java:408)
Caused by: java.lang.UnsatisfiedLinkError: no civil in java.library.path
  at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1709)
  at java.lang.Runtime.loadLibrary0(Runtime.java:823)
  at java.lang.System.loadLibrary(System.java:1030)
  at
com.lti.civil.impl.jni.NativeCaptureSystemFactory.createCaptureSystem(NativeCaptureSystemFactory.java:21)
  ... 12 more

I already tried to load the native library before using it by calling
"System.loadLibrary("civil");".

Has anybody experienced similar problems and solved it?

Thanks for help!

Regards
Rainer

···

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net