EthernetAddress Native code on 64bit OSX?

26 views
Skip to first unread message

krheinwald

unread,
May 1, 2011, 5:09:43 AM5/1/11
to Java Uuid Generator Users
Would that work?

Klaus

Andre-John Mas

unread,
May 1, 2011, 11:01:22 AM5/1/11
to java-uuid-ge...@googlegroups.com, Java Uuid Generator Users
Why would you need any native code? Java 6 already provides the necessary API.

André-John

Sent from my phone. Envoyé depuis mon téléphone.

On 2011-05-01, at 5:09, krheinwald <krhei...@web.de> wrote:

> Would that work?
>
> Klaus

krheinwald

unread,
May 2, 2011, 2:01:57 AM5/2/11
to Java Uuid Generator Users
Because of this Apple-Java bug, which is still unfixed after two years
(Only interfaces with active connections are reported)

http://lists.apple.com/archives/Java-dev/2008/Oct/msg00220.html

On 1 Mai, 17:01, Andre-John Mas <andrejohn....@gmail.com> wrote:
> Why would you need any native code? Java 6 already provides the necessary API.
>
> André-John
>
> Sent from my phone. Envoyé depuis mon téléphone.
>

Andre-John Mas

unread,
May 2, 2011, 11:18:10 AM5/2/11
to java-uuid-ge...@googlegroups.com

On 2-May-2011, at 02:01, krheinwald wrote:

> Because of this Apple-Java bug, which is still unfixed after two years
> (Only interfaces with active connections are reported)
>
> http://lists.apple.com/archives/Java-dev/2008/Oct/msg00220.html
>

I had not realised this was an issue. Then again, what is the likelihood
of no interfaces being returned? Ideally we should explore all pure
Java approaches before having to use a native approach, since this would
save use headaches in the long-run.

I am not saying the native approach is wrong, its just that it should be
a last resort.

Andre

Tatu Saloranta

unread,
May 3, 2011, 4:24:14 AM5/3/11
to java-uuid-ge...@googlegroups.com

I agree. New code does not use or support native code -- although if
anyone wants to try the old code it would be nice to share
experiences, if this is needed on (older?) macs.

-+ Tatu +-

krheinwald

unread,
May 3, 2011, 4:42:49 AM5/3/11
to Java Uuid Generator Users
Background is I was using the old native code to retrieve MAC
addresses until Java supported it natively - (only the EthernetAddress
part, not the UUID part). Recently I realized that I am hit with that
bug on OSX and was hoping to go be able to revert back to the 'old'
native code. For my application, I need the MAC addresses, whether the
interface has an active connection or not.

Klaus
Reply all
Reply to author
Forward
0 new messages