How to connect to Skype using Skype4Java?

When I try to run the code for the MakeCall example, I get the following exception:

com.skype.NotAttachedException
    at com.skype.Utils.convertToSkypeException(Utils.java:36)
    at com.skype.Skype.setDebug(Skype.java:116)
    at com.skype.sample.MakeCall.main(MakeCall.java:26)
Caused by: com.skype.connector.NotAttachedException
    at com.skype.connector.Connector.assureAttached(Connector.java:580)
    at com.skype.connector.Connector.addConnectorListener(Connector.java:604)
    at com.skype.connector.Connector.addConnectorListener(Connector.java:591)
    at com.skype.connector.Connector.setDebug(Connector.java:209)
    at com.skype.Skype.setDebug(Skype.java:114)
    ... 1 more

Now I did not provide any API credentials, so I expect it to fail. Then my question is: how can I provide any credentials needed to connect my connector? The documentation on Skype4Java seems pretty subtle.

After you got no advice, I cross-posted this question on the Skype community forum .

+3
source share
2 answers

, Skype- > Options- > Advance- > , Skype...  Java.exe . .

+1

​​ dbus, , skype "-use-system-dbus".

https://developer.skype.com/Docs/ApiDoc/src#Linux

skype java java .

0

Source: https://habr.com/ru/post/1713913/


All Articles