我一直在开发一个需要创建 ssh 隧道的 java 项目。我为此目的使用 chilkat 库。我已将其成功安装在我的项目文件夹中。这是代码片段。但我收到一条错误消息:
导入 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;}
}
任何人都可以帮我解决它吗?