Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added steps for iterative compilation

...

Code Block
$JAVA_HOME/bin/java -jar /Developer/Extras/Java/JFC/SwingSet2/SwingSet2.jar

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

Code Block

export JDK7_BASE=/Volumes/Data/src/JDK7/macosx-port
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:

Code Block
compilation
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

6. Test

Download jtreg to run the tests in the /jdk/test directory.

...