0N/AWorking on Jar and Zip code using the NetBeans IDE
0N/A
0N/AThis note is specific to working on jar and zip; much more information about
0N/Aworking with this project and others is in ../README.
0N/A
0N/AThis project allows developers to work on the Jar and Zip in java.util.jar and
0N/Ajava.util.zip, as well as the jar tool itself in sun.tools.jar. The NetBeans
0N/Aproject supports editing, building, testing, and debugging of this code. This
0N/Ais a make-based project, and involves compilation of native code. Some of
0N/Athis native code is provided by the JDK community, but the base zip library is
0N/Afrom http://www.zlib.net.
0N/A
0N/APlease note: The most recent zlib is version 1.2.3. We are providing zlib
0N/Aversion 1.1.3, modified to include security fixes that have been added since
0N/Athat release.
0N/A
0N/ASource code layout
0N/A
0N/AThe jar tool depends on the jar library, which in turn depends on the zip
0N/Alibrary. This in turn depends on some native code, which in turn depends on
0N/Athe zlib library:
0N/A
0N/Asun.tools.jar depends on
0N/A java.util.jar, which depends on
0N/A java.util.zip, which depends on
0N/A src/share/native/java/util/zip, which depends on
0N/A src/share/native/java/util/zip/zlib-1.1.3.
0N/A
0N/AThe project is set up to invoke make on the zip code first. This make target
0N/Acompile the native zip code, as well as the Java sources in java.util.zip.
0N/ASubsequent invocations of make build java.util.jar, and then sun.tools.jar.
0N/A
0N/AInsofar as NetBeans use is concerned with Java code, most things you are used
0N/Ato. You can build the project. There are several regression tests included,
0N/Arun either as a group via Test Project or individually via Run File.
0N/ADebugging is also supported, try Debug File. Since the jar tool needs command
0N/Aline parameters in order to do anything interesting, it is not hooked up to
0N/ARun Project in NetBeans.