【发布时间】:2017-03-22 05:30:59
【问题描述】:
我一直在开发一个需要创建 ssh 隧道的 java 项目。我为此目的使用 chilkat 库。我已将其成功安装在我的项目文件夹中。这是代码sn-p。 但我收到一条错误消息:
import com.chilkatsoft.* 未解决。
代码是:
package usingchilkat;
import com.chilkatsoft.*;
public class myclass {
static {
try{
System.loadLibrary("chilkat");
`` } catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load.\n" + e);
System.exit(1);
}
}
public static void main(String argv[])
{
// Important: It is helpful to send the contents of the
// ssh.LastErrorText property when requesting support.
CkSshUnnel ssh = new CkSsh();
boolean success = ssh.UnlockComponent("Anything");
if (success != true) {
System.out.println(ssh.lastErrorText());
return;}
}
谁能帮我解决一下?
【问题讨论】:
-
你试过
import com.chilkat.*;吗? -
是的。但它显示了同样的错误。