I have Windows 7 (32 bit) installed on my Laptop. I am running the below code on Eclipse Juno :
import jpcap.JpcapCaptor;
import jpcap.NetworkInterface;
public class Network {
public static void main(String[] args) {
NetworkInterface[] devices = JpcapCaptor.getDeviceList();
System.out.println("No. of Network devices : "+devices.length);
}
}
I have 2 network adapters and have administrative privileges
But I get the result as: No. of Network devices : 0
Can someone please help with what could be issue?