Aqua Status and Build Process Questions
Scott Palmer
swpalmer at gmail.com
Sun Jul 31 06:50:11 PDT 2011
I edit the netbeans.conf file inside the app package Resources/netbeans/etc/ folder:
# Default location of JDK, can be overridden by using --jdkhome <dir>:
netbeans_jdkhome=/Users/scott/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home
I saw the same issues with the app menu. It didn't launch unless I worked around the NPE that I mentioned in the bug link in my original email.
http://java.net/jira/browse/MACOSX_PORT-203
Note that based on your screen shot, you aren't getting a screen menu bar either. Are you sure you are getting the Aqua LaF at all?
I didn't try forcing the look and feel by setting swing.defaultlaf.. trying that, and a re-built JDK with Stephen's script now...
Well I still get the NPE. My work around for that still works and I get NB to launch but still without Aqua.
It's exactly the same as before, but the NB log does show that I'm using the re-built JDK from Stephen's script and it shows the -Dswing.defaultlaf was used… it still mentions the missing class for Aqua laF…
Cheers,
Scott
On 2011-07-31, at 9:10 AM, Henri Gomez wrote:
> Another try using the following hack in command line :
>
> export netbeans_jdkhome=/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home
> export netbeans_default_options="-D-Dswing.defaultlaf=com.apple.laf.AquaLookAndFeel"
>
> It seems to works with the following error in console.
>
> 2011-07-31 15:05:55.755 java[67814:8107] invalid drawable
>
> BTW, screen and fonts are not the same on JDK 6, About is different
> and preferences didn't works
>
>
> 2011/7/31 Henri Gomez <henri.gomez at gmail.com>:
>> 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
>>>
>>
> <Capture d’écran 2011-07-31 à 15.08.25.png>
More information about the macosx-port-dev
mailing list