如何使用Skype4Java附加到Skype? [英] How do I attach to Skype using Skype4Java?

查看:106
本文介绍了如何使用Skype4Java附加到Skype?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试运行MakeCall示例代码时出现以下异常:

I am getting the following exception when trying to run the MakeCall example code:

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

现在,我还没有提供任何类型的API凭据,所以我有点希望它会失败.那么我的问题是,如何提供连接连接器所需的任何凭据? Skype4Java的文档似乎很苗条.

Now, I have not provided any sort of API credentials, so I kind of expect it to fail. My question then, is how do I provide whatever credentials necessary to attach my connector? The documentation on Skype4Java seems pretty slim.

在这里没有获得任何提示后,我将此问题交叉发布在 Skype中社区论坛.

After not getting any tips here, I have cross-posted this question on the Skype community forum as well.

推荐答案

发生了同样的事情,请进入Skype-> Options-> Advance-> Manage Other Programs访问Skype ... selected 从列表中将Java.exe和set选项设置为允许.现在工作完美.

Had same thing, went on Skype->Options->Advance->Manage Other Programs access to Skype...selected Java.exe from the list and set option to allow. Working perfect now.

这篇关于如何使用Skype4Java附加到Skype?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆