Everything tested and compiled

Printer-friendly

Things are looking really good. I'm compiling multi JRE version jar files, packaging it, generating multiple javadocs and upload to webserver. Tests are passing. The documentation has been updated to reflect the various differences between JRE versions of the API.

Here is a console output of a build on WinXP platform.

Buildfile: C:\jnetstream\jnetpcap\build.xml
clean:
   [delete] Deleting directory C:\jnetstream\jnetpcap\build
   [delete] Deleting directory C:\jnetstream\jnetpcap\dist
prep-dist:
    [mkdir] Created dir: C:\jnetstream\jnetpcap\dist
prep-checks:
prep-build:
    [mkdir] Created dir: C:\jnetstream\jnetpcap\build
prep-jni:
    [mkdir] Created dir: C:\jnetstream\jnetpcap\build\obj
prep-lib:
    [mkdir] Created dir: C:\jnetstream\jnetpcap\build\lib
prep-javah:
    [mkdir] Created dir: C:\jnetstream\jnetpcap\build\include
release-settings:
comp-java:
prep-build:
prep-java:
    [mkdir] Created dir: C:\jnetstream\jnetpcap\build\classes1.4
comp-java-jre:
    [javac] Compiling 21 source files to C:\jnetstream\jnetpcap\build\classes1.4
prep-build:
prep-java:
    [mkdir] Created dir: C:\jnetstream\jnetpcap\build\classes1.5
comp-java-jre:
    [javac] Compiling 21 source files to C:\jnetstream\jnetpcap\build\classes1.5
comp-javah:
     [echo] Generating: ./build/include/org_jnetpcap_Pcap.h
     [echo] Generating: ./build/include/org_jnetpcap_PcapBpfProgram.h
     [echo] Generating: ./build/include/org_jnetpcap_PcapDumper.h
     [echo] Generating: ./build/include/org_jnetpcap_PcapPktHdr.h
     [echo] Generating: ./build/include/org_jnetpcap_PcapPktBuffer.h
     [echo] Generating: ./build/include/org_jnetpcap_PcapStat.h
     [echo] Generating: ./build/include/org_jnetpcap_PcapIf.h
     [echo] Generating: ./build/include/org_jnetpcap_PcapAddr.h
     [echo] Generating: ./build/include/org_jnetpcap_PcapSockAddr.h
     [echo] Generating: ./build/include/org_jnetpcap_winpcap_WinPcap.h
     [echo] Generating: ./build/include/org_jnetpcap_winpcap_PcapStatEx.h
     [echo] Generating: ./build/include/org_jnetpcap_winpcap_WinPcapStat.h
     [echo] Generating: ./build/include/org_jnetpcap_winpcap_WinPcapSamp.h
     [echo] Generating: ./build/include/org_jnetpcap_winpcap_WinPcapRmtAuth.h
comp-jni-linux:
comp-jni-win32:
     [echo] arch=x86
     [echo] name=Windows XP
     [echo] Using WinPcap version 4_0_1
     [echo] compiling JNI C++ files to object code
     [echo] using gcc compiler
     [echo] system include = C:\Program Files\Java\jdk1.5.0_08/include
       [cc] 8 total files to be compiled.
     [echo] linking object files
     [echo] using gcc linker found at /mingw
     [echo] Created shared JNI libary: ./build/lib/jnetpcap.dll
comp-jni:
prep-meta-inf:
    [mkdir] Created dir: C:\jnetstream\jnetpcap\build\meta-inf
comp-manifest:
package-lib:
    [mkdir] Created dir: C:\jnetstream\jnetpcap\dist\jnetpcap-1.2
    [mkdir] Created dir: C:\jnetstream\jnetpcap\dist\jnetpcap-1.2\src
     [copy] Copying 64 files to C:\jnetstream\jnetpcap\dist\jnetpcap-1.2\src
     [copy] Copying 1 file to C:\jnetstream\jnetpcap\dist\jnetpcap-1.2
     [copy] Copying 1 file to C:\jnetstream\jnetpcap\dist\jnetpcap-1.2
     [copy] Copying 1 file to C:\jnetstream\jnetpcap\dist\jnetpcap-1.2
     [copy] Copying 11 files to C:\jnetstream\jnetpcap\dist\jnetpcap-1.2\tests
     [copy] Copying 1 file to C:\jnetstream\jnetpcap\dist\jnetpcap-1.2
     [copy] Copying 7 files to C:\jnetstream\jnetpcap\dist\jnetpcap-1.2
     [copy] Copying 1 file to C:\jnetstream\jnetpcap\dist\jnetpcap-1.2
      [jar] Building jar: C:\jnetstream\jnetpcap\dist\jnetpcap-1.2\jnetpcap-1.2-jre1.4.jar
      [jar] Building jar: C:\jnetstream\jnetpcap\dist\jnetpcap-1.2\jnetpcap-1.2-jre1.5.jar
      [zip] Building zip: C:\jnetstream\jnetpcap\dist\jnetpcap-1.2.zip
prep-dist:
release-settings:
comp-java:
prep-build:
prep-java:
comp-java-jre:
prep-build:
prep-java:
comp-java-jre:
comp-javadoc:
prep-build:
prep-javadoc:
    [mkdir] Created dir: C:\jnetstream\jnetpcap\build\api-jre1.4
comp-javadoc-jre:
  [javadoc] Generating Javadoc
  [javadoc] Javadoc execution
  [javadoc] Loading source files for package org.jnetpcap...
  [javadoc] Loading source files for package org.jnetpcap.winpcap...
  [javadoc] Constructing Javadoc information...
  [javadoc] Standard Doclet version 1.5.0_08
  [javadoc] Building tree for all the packages and classes...
  [javadoc] Building index for all the packages and classes...
  [javadoc] Building index for all classes...
prep-build:
prep-javadoc:
    [mkdir] Created dir: C:\jnetstream\jnetpcap\build\api-jre1.5
comp-javadoc-jre:
  [javadoc] Generating Javadoc
  [javadoc] Javadoc execution
  [javadoc] Loading source files for package org.jnetpcap...
  [javadoc] Loading source files for package org.jnetpcap.winpcap...
  [javadoc] Constructing Javadoc information...
  [javadoc] Standard Doclet version 1.5.0_08
  [javadoc] Building tree for all the packages and classes...
  [javadoc] Building index for all the packages and classes...
  [javadoc] Building index for all classes...
package-doc-api:
      [zip] Building zip: C:\jnetstream\jnetpcap\dist\jnetpcap-1.2-jre1.4-javadoc.zip
      [zip] Building zip: C:\jnetstream\jnetpcap\dist\jnetpcap-1.2-jre1.5-javadoc.zip
BUILD SUCCESSFUL
Total time: 18 seconds

JRE 1.4 support plans abandonded.

After careful consideration the API under JRE 1.4 will not be released. This is due to the fact the Sun Microsystems has within the last month End Of Lifed (EOLed) support for JRE 1.4. A snapshot of the JRE 1.4 has been taken and is available under jnetpcap/tags directory in SVN, but will not be officially released with release 1.2.

Only JRE 1.5 and above are supported.

Sly Technologies, Inc.
R&D