Java application to capture network packets