• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MAC Address In Java 1.5 version

 
Dillibabu Balakrishnan
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all

How to get MAC address in java 1.5?

Regards
Dillibabu.B
 
Stuart A. Burkett
Ranch Hand
Posts: 679
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
SearchFirst. This seems to be a fairly common question.
 
Rob Spoor
Sheriff
Pie
Posts: 20661
65
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
NetworkInterface.
 
Stuart A. Burkett
Ranch Hand
Posts: 679
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rob Spoor wrote:NetworkInterface.

If you are suggesting the OP uses the getHardwareAddress method, it was only added in Java 1.6.
 
Rob Spoor
Sheriff
Pie
Posts: 20661
65
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hmm, you're right. I hate it when that happens - you find the perfect class / method you need, only to find out you can't use it because it's not available in the version you're using.
I once wrote my own simplified copy of URLClassLoader because I needed it to close the files it loaded from, and I couldn't use Java 7 which added a close() method to URLClassLoader...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic