![]()
Code
public static List<String> getMsnFriendList(String msnCount,String password){
List<String> friends = new ArrayList<String>();
System.getenv();
String message="你好,欢迎访问wap.1mp.com,更多精彩尽在其中!";
String command="java -cp /opt/jml.jar: net.sf.jml.example.SimpleMsn "+msnCount+" "+password+" "+message;
try {
Process p=Runtime.getRuntime().exec(command);
BufferedInputStream in = new BufferedInputStream(p.getInputStream());
BufferedReader br = new BufferedReader(new InputStreamReader(in));
String content=br.readLine();
while(content!=null){
friends.add(content);
content=br.readLine();
}
} catch (IOException e) {
e.printStackTrace();
}
return friends;
}
提供jml.jar 下载
jml.jar
posted on
2009-10-30 13:12
三角板
阅读(
449)
评论()
收藏
举报