如何固定若干PC, 除固定的PC 外,不能 Login, 提高安全性 可以用网卡,计算机名,IP,windows的 useridSystem.getProperty("user.name") 得到userid 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 帮你写一段取MAC地址的代码,自己看吧import java.io.InputStreamReader;import java.io.LineNumberReader;class Test { public static void main(String[] args) { Test test = new Test(); System.out.println(test.getMACAddress()); } public String getMACAddress() { String strMacAddr = null; try { Process process = Runtime.getRuntime().exec("ipconfig /all"); InputStreamReader ir = new InputStreamReader(process .getInputStream()); LineNumberReader input = new LineNumberReader(ir); String line; while ((line = input.readLine()) != null) { if (line.indexOf("Physical Address") > 0) { strMacAddr = line.substring(line.indexOf("-") - 2); } } } catch (java.io.IOException e) { System.err.println("IOException " + e.getMessage()); } return strMacAddr; }} 求助 用js写cookie完成记住用户名 怎么实现jsp页面的局部刷新? net程序员转型JAVA TM4J 为什么applicationContext.xml放在web-inf下就找不到??55555555555 怎么给JAVA原代码加密???????????????? JDBC的连接问题 有做过通讯录的朋友吗?请给点思录.建议 最好代上原码 我的访问本地oracle不能insert的问题 javax.xml中用什么方法和对象来接收request中的xml文档,急! 一个邮件发送的问题(怪哉!怪哉!) JDOM操作高手请进
import java.io.LineNumberReader;class Test { public static void main(String[] args) {
Test test = new Test();
System.out.println(test.getMACAddress());
} public String getMACAddress() {
String strMacAddr = null;
try {
Process process = Runtime.getRuntime().exec("ipconfig /all");
InputStreamReader ir = new InputStreamReader(process
.getInputStream());
LineNumberReader input = new LineNumberReader(ir);
String line;
while ((line = input.readLine()) != null) {
if (line.indexOf("Physical Address") > 0) {
strMacAddr = line.substring(line.indexOf("-") - 2);
}
}
} catch (java.io.IOException e) {
System.err.println("IOException " + e.getMessage());
}
return strMacAddr;
}
}