Try something like this:
If you are happy with the terminal, just create a new file and add something like this:
and save the file as blah.command (the .command extension launches the sh file in the terminal with a double click).
If you need a little better, you can use the osascript command as follows:
#!/bin/sh osascript -e "do shell script \"java -jar littleSniffer.jar\" with administrator privileges"
What will use the GUI request for the root password.
NOTE. If your .command file is not running, you may need to:
chmod +x blah.command
to make it doable.
source share