Mounting the Java 2 SDK
If you wish to browse the sources of the Java 2 SDK, you can mount them in the IDE. However,
the sources provided with the Java 2 SDK are packed with an extra level of hierarchy. So it is necessary to unpack
the JAR to mount the sources at the correct mount point.
To mount the Java 2 SDK in the IDE:
- On the command line of your system, change directories to the directory that contains the
Java 2 SDK sources. This should be the root directory of the SDK.
- On the command line, use the jar tool to unpack the sources. For example, where
src.jar contains the sources, type
jar xvf src.jar
- In the main window of the IDE, choose File
Mount Filesystem.
- In the New wizard, select the Local Directory node. Click Next.
- In the Select Archive panel, browse to the SDK's directory, and select the src directory.
- Click Finish to exit the wizard and mount the directory.
- In the Explorer, right-click the node for the newly mounted directory and choose Properties.
- Click the Capabilities tab on the property sheet and set the Use in Compiler property to False.
This prevents the SDK sources from being compiled when you compile your own Java classes.
 |
To save disk space, you can mount the SDK sources as a repacked JAR file or
a zip file instead. Create the JAR file or zip file without the
src/ level. When mounting the JAR or zip archive, select Archive in the wizard. |
Legal Notices