You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Iterative development of a particular module, AWT for example (avoid having to build whole JDK)

export JDK7_BASE=<path to your local JDK7 copy>
export JDK7_BUILD=$JDK7_BASE/build
export ALT_BOOTDIR=$JDK7_BUILD/macosx-universal/j2sdk-image/
export ALT_JDK_IMPORT_PATH=$JDK7_BUILD/macosx-universal/j2sdk-image/
export ALT_OUTPUTDIR=$JDK7_BUILD/macosx-universal
cd $JDK7_BASE/jdk/make/sun/awt/
make

Settting bootclasspath, DYLD_LIBRARY_PATH and debugging with your changes:

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
  • No labels