请问:为什么不能Telnet? 试试等待Telnet进程结束。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 public class Test{ public static void main(String[] args) { try{ String[] command = {"telnet","bbs.sjtu.edu.cn"}; Runtime.getRuntime().exec(command); } catch(Exception exc) { System.out.println(exc); } }} public class Test{ public static void main(String[] args) { try{ String[] command = {"telnet","bbs.sjtu.edu.cn"}; Runtime.getRuntime().exec(command); } catch(Exception exc) { System.out.println(exc); } }} public class Test{ public static void main(String[] args) { try{ String[] command = {"telnet","bbs.sjtu.edu.cn"}; Runtime.getRuntime().exec(command); } catch(Exception exc) { System.out.println(exc); } }} telnet好奇怪,怎么运行不了?或者运行了看不见?感觉是看不见?为什么? 你自己做一个接收和显示数据的线程(服务器),然后用一个telnet来连接它,就会有显示了。 怎么做呢?太复杂了一点吧?不能使用windows自带的吗? 直接得到cmd的结果或交互操作不是很简单的。前几天有个贴子说过,可以搜一下。 JCreator编译出错 jxl读取excel的合并单元格 最后两行为什么输出3.0 而不是3.333333和3.3333333333333333呢? 有没有比JUnit更好的单元测试工具啊? 求救! 如何利用现有的清单文件做jar文件 怎么设计图形按钮? 怎么才能返回数组句柄! javamail的怪事,加了附件,内容不显示,加了内容附件没有了。 我没有C的基础直接学JAVA行不行? String 能否转换成short类型 为什么?实在很不明白.
{
public static void main(String[] args)
{
try{ String[] command = {"telnet","bbs.sjtu.edu.cn"}; Runtime.getRuntime().exec(command); } catch(Exception exc) {
System.out.println(exc);
}
}
}
{
public static void main(String[] args)
{
try{ String[] command = {"telnet","bbs.sjtu.edu.cn"}; Runtime.getRuntime().exec(command); } catch(Exception exc) {
System.out.println(exc);
}
}
}
{
public static void main(String[] args)
{
try{ String[] command = {"telnet","bbs.sjtu.edu.cn"}; Runtime.getRuntime().exec(command); } catch(Exception exc) {
System.out.println(exc);
}
}
}
或者运行了看不见?感觉是看不见?为什么?
太复杂了一点吧?
不能使用windows自带的吗?
前几天有个贴子说过,可以搜一下。