Aqua Status and Build Process Questions
Scott Palmer
swpalmer at gmail.com
Sat Jul 30 16:49:01 PDT 2011
On 2011-07-30, at 6:26 PM, Stephen Bannasch wrote:
> 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?
No, apparently I have a symlink there:
$ ls -l /Users/scott/Library/Java/JavaVirtualMachines/1.7.0.jdk
lrwxr-xr-x 1 scott staff 70 11 Jan 2011 /Users/scott/Library/Java/JavaVirtualMachines/1.7.0.jdk -> /Users/scott/dev/openjdk/build/macosx-universal/j2sdk-bundle/1.7.0.jdk
and that "seemed" to work. Perhaps it isn't a good idea?
>
> 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
Thanks, I'll try it out.
I wonder why isn't this or something like it committed to the Mercurial repo?
Cheers,
Scott
More information about the macosx-port-dev
mailing list