基于windows平台下运行:(linux下当然也能实现)
java.lang.Process myproc = Runtime.getRuntime().exec("cmd.exe /c set RTI_HOST");
InputStream is = myproc.getInputStream();
byte[] data = new byte[1024*2];
int i = 0;
is.read(data,0,1024*2);
System.err.println(new String(data));
is.close();
is = null;
java.lang.Process myproc = Runtime.getRuntime().exec("cmd.exe /c set RTI_HOST");
InputStream is = myproc.getInputStream();
byte[] data = new byte[1024*2];
int i = 0;
is.read(data,0,1024*2);
System.err.println(new String(data));
is.close();
is = null;
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货