This is our old Q&A Site. Please post any new questions and answers at

Hi everyone,

I am a MSc. student, and I want to use Wireshark to analyze packets and import this result to Java. Anyone know whether Wireshark has an API?

[email protected]

asked 20 May '12, 06:27

sarwar's gravatar image

accept rate: 0%

edited 20 May '12, 14:44

helloworld's gravatar image


Dear All,

Have anyone information about library to analysis packets in Java.

(23 May '12, 03:22) sarwar

did you read my answer, posted 2 days ago?

(23 May '12, 04:03) Kurt Knochner ♦

You have these options:

  1. run tshark (possibly with option -V) and then parse the text output with Java
  2. If you want to use Java anyway, use one of these PCAP Java libraries/bindings:


permanent link

answered 20 May '12, 08:28

Kurt%20Knochner's gravatar image

Kurt Knochner ♦
accept rate: 15%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 20 May '12, 06:27

question was seen: 15,895 times

last updated: 23 May '12, 04:03

p​o​w​e​r​e​d by O​S​Q​A