自己写了个方法,希望对你有帮助:
package test;
import java.io.*;//windows XP下获取网卡MAC地址的方法
public class MacAddress
{
    public static String getMacAddress()
    {
        String address = null;
        Runtime runtime = Runtime.getRuntime();
        Process process = null;        try
        {
           process = runtime.exec("ipconfig /all");
           InputStream in = process.getInputStream();
           BufferedReader reader = new BufferedReader(new InputStreamReader(in) );
           String tmp = null;
           
           while( (tmp = reader.readLine()) != null )
           {
              if(tmp.indexOf("Physical Address")!=-1)
              {
                  address = tmp.split(":")[1];
                  break;
              }
           }
           
        }
        catch(IOException ioe)
        {
            ioe.printStackTrace();
        }
        
        return address;
    }
}