java - import com.chilkatsoft.* not resolved -
this question has answer here:
- how import jar in eclipse 6 answers
 
i have been developing java project need create ssh tunnel. using chilkat library purpose.i have installed in project folder. here code snippet. getting error saying:
import com.chilkatsoft.* not resolved .
the code is:
package usingchilkat;  import com.chilkatsoft.*;  public class myclass { static {        try{            system.loadlibrary("chilkat");        ``  } catch (unsatisfiedlinkerror e) {             system.err.println("native code library failed load.\n" + e);             system.exit(1);           }         }          public static void main(string argv[])         {         //  important: helpful send contents of         //  ssh.lasterrortext property when requesting support.              cksshunnel ssh = new ckssh();             boolean success = ssh.unlockcomponent("anything");             if (success != true) {               system.out.println(ssh.lasterrortext());               return;}            }   can please me fix it?
have correctly set java.library.path system property? like:
java -djava.library.path=yourpath yourapp   or load path directly:
system.load("c:/yourpath/chilkat.dll");      
Comments
Post a Comment