Hi Toivo Talikka,
Thanks for your help, I tried to follow the solutions you provide but again facing the problems. I downloaded the both .tar and .zip files of jpcap from sourceforge site (previously using jpcap not from this site). .Zip files for windows just containing the .jar files and .tar file contains the whole package and I found the client application in that package. From the make file in each folder of .tar package I figured this package is for Linux. Anyways I still try to run the client application, 1. seperatly making the project, 2. within the package. All from command prompt after reading the readme files and ofcourse setting up the java home path. But it gives the error which looks like.
CaptureTool, exception in main thread, no class defination found.
When I tried it running after making the complete seperate project and copy past the code in that project's files then it gives the linker error.
Any ways thats from the solution you suggested. I write a little code myself prevously whose output is something like this.
Packet Captured Length:62
Packet Data :[B@89ae9e
Packet DataLink :jpcap.packet.EthernetPacket@1270b73 01:00:01:00:00:00->e8:33:20:00:01:00 (2048)
Packet Header :[B@60aeb0
Packet Length :62
Timestamp Sec :1170088339
Timestamp MSec :675781
Dest Mac Address:[B@16caf43
Now as you can see fields are actually containing the machine language values. I must have to convert it in normal english language to display, specially the data contents.
Can you or somebody else pleeeeeeeeeeeeeease help me in this regards,
One most importantly my OS is WindowsXP so please keep it in mind while suggesting any solution.
Zahida