[jitsi-dev] How to configure Eclipse to compile and debug Jitsi on MAC


#1

I followed the instruction on
https://jitsi.org/Documentation/ConfigureEclipseNew to setup CONFIGURATION.
I can run ant "make and deploy" successfully. But I got the following error
once I debug it by running CONFIGURATION.

Warning: Failed to register our command line argument handler. We won't be
able to handle command line arguments.

java.lang.UnsatisfiedLinkError:
net.java.sip.communicator.util.launchutils.AEGetURLEventHandler.setAEGetURLListener(Lnet/java/sip/communicator/util/launchutils/AEGetURLEventHandler$IAEGetURLListener;)V

at
net.java.sip.communicator.util.launchutils.AEGetURLEventHandler.setAEGetURLListener(Native
Method)

at net.java.sip.communicator.util.launchutils.AEGetURLEventHandler.<init>(
AEGetURLEventHandler.java:50)

at net.java.sip.communicator.util.launchutils.LaunchArgHandler.<init>(
LaunchArgHandler.java:203)

at net.java.sip.communicator.util.launchutils.LaunchArgHandler.getInstance(
LaunchArgHandler.java:216)

at net.java.sip.communicator.launcher.SIPCommunicator.main(
SIPCommunicator.java:148)

2017-03-10 08:55:03.380 SEVERE: [24] impl.hid.HIDServiceImpl.<init>().66
Error when creating Robot/NativeKeyboard instance

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

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

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

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

at net.java.sip.communicator.impl.hid.NativeKeyboard.<clinit>(
NativeKeyboard.java:29)

at net.java.sip.communicator.impl.hid.HIDServiceImpl.<init>(
HIDServiceImpl.java:61)

at net.java.sip.communicator.impl.hid.HIDActivator.start(
HIDActivator.java:60)

at org.apache.felix.framework.util.SecureAction.startActivator(
SecureAction.java:697)

at org.apache.felix.framework.Felix.activateBundle(Felix.java:2226)

at org.apache.felix.framework.Felix.startBundle(Felix.java:2144)

at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1371)

at org.apache.felix.framework.FrameworkStartLevelImpl.run(
FrameworkStartLevelImpl.java:308)

at java.lang.Thread.run(Thread.java:745)

2017-03-10 08:55:03.647 java[7856:8599364] 08:55:03.647 WARNING: 140: This
application, or a library it uses, is using the deprecated Carbon Component
Manager for hosting Audio Units. Support for this will be removed in a
future release. Also, this makes the host incompatible with version 3 audio
units. Please transition to the API's in AudioComponent.h.

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

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

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

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

at
net.java.sip.communicator.impl.globalshortcut.NativeKeyboardHook.<clinit>(
NativeKeyboardHook.java:265)

at
net.java.sip.communicator.impl.globalshortcut.GlobalShortcutServiceImpl.<init>(
GlobalShortcutServiceImpl.java:67)

at
net.java.sip.communicator.impl.globalshortcut.GlobalShortcutActivator.start(
GlobalShortcutActivator.java:112)

at org.apache.felix.framework.util.SecureAction.startActivator(
SecureAction.java:697)

at org.apache.felix.framework.Felix.activateBundle(Felix.java:2226)

at org.apache.felix.framework.Felix.startBundle(Felix.java:2144)

at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1371)

at org.apache.felix.framework.FrameworkStartLevelImpl.run(
FrameworkStartLevelImpl.java:308)

at java.lang.Thread.run(Thread.java:745)

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

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

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

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

at
net.java.sip.communicator.plugin.addrbook.macosx.MacOSXAddrBookContactSourceService.<clinit>(
MacOSXAddrBookContactSourceService.java:53)

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(Class.java:264)

at net.java.sip.communicator.plugin.addrbook.AddrBookActivator.startService(
AddrBookActivator.java:357)

at net.java.sip.communicator.plugin.addrbook.AddrBookActivator.start(
AddrBookActivator.java:265)

at org.apache.felix.framework.util.SecureAction.startActivator(
SecureAction.java:697)

at org.apache.felix.framework.Felix.activateBundle(Felix.java:2226)

at org.apache.felix.framework.Felix.startBundle(Felix.java:2144)

at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1371)

at org.apache.felix.framework.FrameworkStartLevelImpl.run(
FrameworkStartLevelImpl.java:308)

at java.lang.Thread.run(Thread.java:745)

My working environment is JDK 8, MAC 10.11.6.

I am a new developer in this subject. I got stuck. Thank you very much!

James


#2

I followed the instruction on
https://jitsi.org/Documentation/ConfigureEclipseNew to setup CONFIGURATION. I
can run ant "make and deploy" successfully. But I got the following error
once I debug it by running CONFIGURATION.

Warning: Failed to register our command line argument handler. We won't be
able to handle command line arguments.

[...]

My working environment is JDK 8, MAC 10.11.6.

I am a new developer in this subject. I got stuck. Thank you very much!

The native libraries cannot be found. Can you please double check the paths to the native libraries? The path mentioned in the doc (DYLD_LIBRARY_PATH=${workspace_loc}/jitsi/lib/native/mac) may not be correct anymore, try fiddling around with it. If the clone of the Jitsi Git repo is named differently, then the path must also be adjusted.

I don't have a Mac so I can't verify the settings myself.

James

Ingo