Aqua Status and Build Process Questions

Stephen Bannasch stephen.bannasch at deanbrook.org
Sat Jul 30 15:26:50 PDT 2011


At 5:44 PM -0400 7/30/11, Scott Palmer wrote:
>I've been doing my own builds and I'm starting to question if I'm doing them correctly.
>First I tried to run Netbeans 7.0.1rc1 and ran into this issue:
>http://java.net/jira/browse/MACOSX_PORT-203
>
>But I used the trick mentioned there to get Netbeans to launch and I noticed this in the log:
>
>	"Custom UI class apple.laf.AquaLookAndFeel not on class path."
>
>>From the project status page (http://wikis.sun.com/display/OpenJDK/Mac+OS+X+Port+Project+Status) it looks like the Aqua LnF is mostly complete, and I thought I read here that it was enabled weeks ago.
>
>But Netbeans 7.0.1rc1 doesn't seem to enable the screen  menu bar and uses the Java default LnF.
>
>I build by pulling and updating the main repo, then running the get_source.sh script.  Then I run this custom batch script to build the code:
>
>#!/bin/bash
>export LANG=C
>unset JAVA_HOME
>export CC=/Developer/usr/bin/llvm-gcc-4.2
>export CXX=/Developer/usr/bin/llvm-g++-4.2
>export ALLOW_DOWNLOADS=true
>export SA_APPLE_BOOT_JAVA=true
>export ALWAYS_PASS_TEST_GAMMA=true
>export ALT_BOOTDIR=`/usr/libexec/java_home -v 1.6`
>make $1
>
>
>Whenever the build fails I make sure to do a "make clean" and then "make" and it seems to work.
>
>Then I can run Java 7 with:
>  `/usr/libexec/java_home -v 1.7`/bin/java

After a successful build do you copy it to ~/Library/Java/JavaVirtualMachines/1.7.0.jdk?

This is what I do after a build that completes AND passes a selected set of the jtreg unit tests

$ rm -rf ~/Library/Java/JavaVirtualMachines/1.7.0.jdk; cp -R build/macosx-universal/j2sdk-bundle/1.7.0.jdk ~/Library/Java/JavaVirtualMachines

fwiw: here is the build script I use on Mac OS X 10.6

  https://gist.github.com/908156

After building the script runs the following test suites:

  jdk/test/java/lang/String
  jdk/test/java/lang/invoke


More information about the macosx-port-dev mailing list