Ich habe ein Java-Projekt entwickelt, wo ich einen SSH-Tunnel erstellen muss. Ich benutze chilkat Bibliothek für den Zweck. Ich habe es erfolgreich in meinem Projektordner installiert. Hier ist das Code-Snippet. Aber ich bekomme einen Fehler, der sagt:import com.chilkatsoft. * Nicht gelöst
importieren Sie com.chilkatsoft. * Nicht behoben.
Der Code ist:
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;}
}
Kann jemand bitte helfen Sie mir das Problem beheben?
Haben Sie versucht, 'Import com.chilkat *;'.? – Swagin9
Ja. Aber es zeigt den gleichen Fehler. – Preety