I'm creating an Android extension intended to connect to a remote SSH host based on the well known JSch library, so that once the button is pressed, the class is instantiated this way, with no compilation error:
JSch jsch = new JSch();
...but, application crashes!
Looking at the JSch() constructor, there is nothing inside:
public JSch(){
// here there are several commented instructions that need to be
// used just at MAC operational systems (not my OS).
}
If I remove initiation, compiler complains that variable jsch is not initalized.
JSch jsch;
Once I'm compiling with Apache Ant, there is no debug resources that I could use to trace the runtime error.
All tests are being made either within threads or callback methods, giving the same result; I simply cannot initiate the jsch variable, this yields a runtime exception com.jcraft.jsch.JSch. Does someone has some insights on how to solve that issue ?