Aqua Status and Build Process Questions
Henri Gomez
henri.gomez at gmail.com
Sun Jul 31 05:42:48 PDT 2011
ok.
How did you set OpenJDK 7 as 'startup VM' for NetBeans ?
Using something like ?
export JAVA_HOME=/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home
I tried with this and also by defining OpenJDK 7 as primary Java but I
still see Java 1.6.0 JDK as running JVM in NB 7.0.1rc1 :
Product Version: NetBeans IDE 7.0.1 RC1 (Build 201106222100)
Java: 1.6.0_26; Java HotSpot(TM) 64-Bit Server VM 20.1-b02-383
System: Mac OS X version 10.7 running on x86_64; MacRoman; fr_FR (nb)
Userdir: /Users/henri/.netbeans/7.0.1rc1
2011/7/31 Scott Palmer <swpalmer at gmail.com>:
> I was trying to run NB7 with OpenJDK 7, expecting some issues.
>
> Scott
>
> On 2011-07-31, at 8:25 AM, Henri Gomez <henri.gomez at gmail.com> wrote:
>
>> Hi Scott
>>
>> You mentioned OpenJDK 7 and NetBeans 7.
>>
>> Did you try to use NetBeans 7 to make Java 7 apps or to run NetBeans 7
>> with OpenJDK 7 ?
>>
>> 2011/7/30 Scott Palmer <swpalmer at gmail.com>:
>>> 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
>>>
>>> The path returned for java_home is:
>>> /Users/scott/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home
>>>
>>> and java -version returns:
>>>
>>> $ `/usr/libexec/java_home -v 1.7`/bin/java -version
>>> openjdk version "1.7.0-internal"
>>> OpenJDK Runtime Environment (build 1.7.0-internal-scott_2011_07_28_22_41-b00)
>>> OpenJDK 64-Bit Server VM (build 21.0-b17, mixed mode)
>>>
>>> The timestamp on the version indicates it is using what I've just compiled.
>>>
>>> Am I missing something, or is Aqua still not usable?
>>>
>>>
>>> Regards,
>>>
>>> Scott
>
More information about the macosx-port-dev
mailing list