- Loading...
| CSS Stylesheet |
|---|
.wiki-content .confluenceTh,
.wiki-content .confluenceTd {
border: 2px solid #e76f00;
} |
| This feature was delivered into JDK 7u4 which was released April 2012 and was subsequently dissolved February 2020. Discussion about ports may be found on porters-dev. |
Setup these environment variables to do iterative development of a particular module, AWT for example (avoid having to build the whole JDK)
| Code Block |
|---|
export JDK7_BASE=<path to your local JDK7 copy> export JDK7_BUILD=$JDK7_BASE/build export ALT_BOOTDIROUTPUTDIR=$JDK7_BUILD/macosx-universal/j2sdk-image/ export ALT_JDK_IMPORT_PATH=$JDK7_BUILD/macosx-universalBOOTDIR=$ALT_OUTPUTDIR/j2sdk-image/1.7.0.jdk/Contents/Home/ export ALT_JDK_OUTPUTDIRIMPORT_PATH=$JDK7_BUILD/macosx-universal$ALT_BOOTDIR cd $JDK7_BASE/jdk/make/sun/awt/ make |
To run your changes, prepend the bootclasspath, and set DYLD_LIBRARY_PATH:
| Code Block |
|---|
export _JAVA_OPTIONS=-Xbootclasspath/p:$JDK7_BUILD/macosx-universal/classes/
export DYLD_LIBRARY_PATH=$JDK7_BUILD/macosx-universal/lib/
$JAVA_HOME/bin/java -jar /Developer/Extras/Java/JFC/SwingSet2/SwingSet2.jar
|
More helpful suggestions to decrease your build time:
...