Java JPCAP:异常\访问\冲突

Java JPCAP:异常\访问\冲突,java,exception,jpcap,Java,Exception,Jpcap,我使用JPCAP代码在pcap文件中写入数据包(我使用的是JDK1.7) JpcapCaptor captor=JpcapCaptor.openDevice(device[index], 65535, false, 20); //open a file to save captured packets JpcapWriter writer=JpcapWriter.openDumpFile(captor,"yourfilename");

我使用JPCAP代码在pcap文件中写入数据包(我使用的是JDK1.7)

      JpcapCaptor captor=JpcapCaptor.openDevice(device[index], 65535, false, 20);
       //open a file to save captured packets
            JpcapWriter writer=JpcapWriter.openDumpFile(captor,"yourfilename");

                for(int i=0;i<10;i++){
         //capture a single packet
         Packet packet=captor.getPacket();
        //save it into the opened file
              writer.writePacket(packet);
         }

#

我昨天解决了同样的问题。你读过这个吗?相关吗@汤姆,你能告诉我你是如何解决这个问题的吗。。。。
       #
       # A fatal error has been detected by the Java Runtime Environment:
        #
         #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x01cf675d, pid=5564,  tid=4876
        #
        # JRE version: 7.0-b141
        # Java VM: Java HotSpot(TM) Client VM (21.0-b11 mixed mode, sharing windows-x86 )
        # Problematic frame:
        # v  ~BufferBlob::jni_fast_GetLongField
          #
        # Failed to write core dump. Minidumps are not enabled by default on client versions of Windows