write a dll and use JNI to call it.

解决方案 »

  1.   

    能用java的到mac?
    能在用户通过Browse登录时获取?
    好像想歪了吧
    呵呵,个人意见
      

  2.   

    请问javamap():使用JNI能在Browse中使用吗?大概如何实现呢?哪里可得到相关使用说明。
    多谢!!
      

  3.   

    如果你说想做一个网页,别人浏览的时候取得对方的mac地址的话。
    实际上除非对方和你在同一网络内,否则根本就不可能,因为在底层传输中,跨网络的包中应该是没有
    包含mac地址这个信息的,只有源IP地址和目标IP地址
      

  4.   

    JNI 你听我说
    O ,O ,O
    Only you ,can tell me the MAC!
      

  5.   

    我觉得在internet中ip地址与mac地址相关联,传送中有网点决定。
    那我想知道用java如何得到本地的mac地址呢?
      

  6.   

    http://www.csdn.net/expert/TopicView.asp?id=357293
      

  7.   

    我是想用JAVA自动得到不是用外部命令。如:ipconfig /all
      

  8.   

    JNI has the same effect as "ipconfig /all", because it calls dlls. JNI can be used in browser, but browser user need to change security.
      

  9.   

    但是JNI只能拿到服务器的MAC地址,根本不可能拿到客户端的MAC地址,这个是由底层的网络传输协议所限制的
      

  10.   

    Client can use JNI, retrieve the MAC addr, then send to the server
      

  11.   

    请问:javamap(),得到mac地址的方法是怎样的。能写几行吗?多谢!
      

  12.   

    The easiest way is to run "ipconfig /all" from Java (use Runtime.exec()), then get output from it, then try to parse the output.Don't blame me if the following code doesn't compile:Process p = Runtime.exec("cmd ipconfig /all");
    InputStream strm = p.getInputStream();
    //from strm, you can readline(), then look for "Physical Address"
      

  13.   

    这个问题好办
    但是我不懂JAVA
    不知道JAVA可以调C吗?
    如果行,
    就好办了