I want to develop a java application (run in windows) that can catch the url of the browser. what ever be the browser be, the url should be print in java. I tried it by listening to http socket, it doesnt work for me. Any one have any ideas?
I tried jpcap application, socket programing (java.net package)
But when i used jpcap. The following exception came.
The program run successfully in 2010 in xp. Now i am using windows 7
import jpcap.JpcapCaptor;
/**
*
*/
/**
* @author james
*
*/
public class NetworkInterface {
/**
* @param args
*/
public static void main(String[] args) {
jpcap.NetworkInterface[] devices = JpcapCaptor.getDeviceList();
System.out.println(devices);
}
}
Exception
Exception in thread "main" java.lang.UnsatisfiedLinkError: jpcap.JpcapCaptor.getDeviceList()[Ljpcap/NetworkInterface;
at jpcap.JpcapCaptor.getDeviceList(Native Method)
at NetworkInterface.main(NetworkInterface.java:17)
Can any one help me to solve this?