source: trunk/openjdk/jdk/make/netbeans/jarzip/README

Last change on this file was 2, checked in by dmik, 15 years ago

Imported OpenJDK 6 b19 sources from Oracle.

File size: 1.8 KB
Line 
1Working on Jar and Zip code using the NetBeans IDE
2
3This note is specific to working on jar and zip; much more information about
4working with this project and others is in ../README.
5
6This project allows developers to work on the Jar and Zip in java.util.jar and
7java.util.zip, as well as the jar tool itself in sun.tools.jar. The NetBeans
8project supports editing, building, testing, and debugging of this code. This
9is a make-based project, and involves compilation of native code. Some of
10this native code is provided by the JDK community, but the base zip library is
11from http://www.zlib.net.
12
13Please note: The most recent zlib is version 1.2.3. We are providing zlib
14version 1.1.3, modified to include security fixes that have been added since
15that release.
16
17Source code layout
18
19The jar tool depends on the jar library, which in turn depends on the zip
20library. This in turn depends on some native code, which in turn depends on
21the zlib library:
22
23sun.tools.jar depends on
24 java.util.jar, which depends on
25 java.util.zip, which depends on
26 src/share/native/java/util/zip, which depends on
27 src/share/native/java/util/zip/zlib-1.1.3.
28
29The project is set up to invoke make on the zip code first. This make target
30compile the native zip code, as well as the Java sources in java.util.zip.
31Subsequent invocations of make build java.util.jar, and then sun.tools.jar.
32
33Insofar as NetBeans use is concerned with Java code, most things you are used
34to. You can build the project. There are several regression tests included,
35run either as a group via Test Project or individually via Run File.
36Debugging is also supported, try Debug File. Since the jar tool needs command
37line parameters in order to do anything interesting, it is not hooked up to
38Run Project in NetBeans.
Note: See TracBrowser for help on using the repository browser.