Quantcast
Channel: BlogoSfera » session
Viewing all articles
Browse latest Browse all 21

why block main function exit?

$
0
0

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) { // TODO Auto-generated catch block e.printStackTrace(); } ... ... System.out.println("end of test"); } this java program will stop after printing “end of test”. I don’t understand why the […]

The post why block main function exit? appeared first on BlogoSfera.


Viewing all articles
Browse latest Browse all 21

Trending Articles