Quantcast
Viewing all articles
Browse latest Browse all 21

java hang at the end of program

I have a java program which prints out the last statement of main program and hang. I would like to know what could cause this problem thanks. public static void main(String[] args) { ... ... JSch jsch=new JSch(); try { jsch.addIdentity("xxx"); session = jsch.getSession("centos", this.ip, 22); session.setConfig("StrictHostKeyChecking", "no"); session.connect(); } catch (JSchException e) { // […]

The post java hang at the end of program appeared first on BlogoSfera.


Viewing all articles
Browse latest Browse all 21

Trending Articles