This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java in General and the fly likes MAC Address In Java 1.5 version Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "MAC Address In Java 1.5 version" Watch "MAC Address In Java 1.5 version" New topic
Author

MAC Address In Java 1.5 version

Dillibabu Balakrishnan
Greenhorn

Joined: Sep 11, 2012
Posts: 8
Hi all

How to get MAC address in java 1.5?

Regards
Dillibabu.B
Stuart A. Burkett
Ranch Hand

Joined: May 30, 2012
Posts: 679
SearchFirst. This seems to be a fairly common question.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19649
    
  18

NetworkInterface.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Stuart A. Burkett
Ranch Hand

Joined: May 30, 2012
Posts: 679
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

Joined: Oct 27, 2005
Posts: 19649
    
  18

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...
 
wood burning stoves
 
subject: MAC Address In Java 1.5 version
 
Similar Threads
ArrayList problem
SDK
Confused about Arrays.binarySearch
Khalid Mughal again.
problem with EL in my JSP page