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

Hi, I'm trying to use the following command from java application: tshark -l -T pdml -ieth0 -f "host or host" -Y"http"

When i'm executing this command line from the shell it works fine, but when i'm trying to run this command from the application i get this message: <?xml version="1.0"?> <?xml-stylesheet type="text/xsl" href="pdml2html.xsl"?> <pdml version="0" creator="wireshark/1.12.0" time="Tue Jan 6 18:17:43 2015" capture_file=""> </pdml>

Any help welcome Thanks Ilan

asked 06 Jan '15, 08:20

Ilan's gravatar image

accept rate: 0%

Looks like your capturing process did not start. One possible reason: Your Java application does not have enough privileges to run tshark (actually dumpcap) on Linux/Unix/*BSD. If so, you will get an error message on STDERR. So, please check STDERR while you run tshark from Java to see the error message.

To fix the privilege issue, please read the following Wiki:

See also my answers (and comments) to the following questions.


permanent link

answered 07 Jan '15, 01:33

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: 06 Jan '15, 08:20

question was seen: 1,787 times

last updated: 07 Jan '15, 01:33

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