Visualizzazione dei risultati da 1 a 3 su 3
  1. #1

    [JAVA] ricavare l'indirizzo MAC

    E possibile?

    Ciao!

  2. #2
    Ho trovato questo:

    public class EthZeroMacAddress {
    public EthZeroMacAddress() {
    }
    static {
    System.loadLibrary("getmac");
    }
    public native String getMacAddress();
    public static void main(String[] args) {
    EthZeroMacAddress eth0 = new EthZeroMacAddress();
    System.out.println("ETH0 MAC ADDRESS=" + eth0.getMacAddress());
    }
    }

    Qualcuno sa aiutarmi ad usare questa classe?

  3. #3
    Mi viene restituito questo errore:

    java.lang.UnsatisfiedLinkError: no getmac in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java :1491)
    at java.lang.Runtime.loadLibrary0(Runtime.java:788)
    at java.lang.System.loadLibrary(System.java:834)
    at EthZeroMacAddress.<clinit>(EthZeroMacAddress.java: 5)
    Exception in thread "main"

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.