RFR: 7113349 JDK8 port to macosx

Anthony Petrov anthony.petrov at oracle.com
Tue Mar 6 08:43:51 PST 2012


Hi Michael,

Could you please confirm if SwingSet2 works for you when you're using a 
JDK8 build with your Mac Port changes in place?

--
best regards,
Anthony

On 3/6/2012 5:40 AM, Stephen Bannasch wrote:
> At 3:29 PM -0800 3/5/12, Stuart Marks wrote:
>> On 3/5/12 12:52 PM, Stephen Bannasch wrote:
>>> At 4:05 PM +0000 3/5/12, Michael McMahon wrote:
>>>> I'm still having problems reproducing this, even with the same boot JDK you are using.
>>> I've reproduced John's error on 10.6.8 applying webrev.4 on top of jdk8/tl.
>>>
>>> The error occurs running ./test_gamma:
>>>   ...
>>>   echo "Doing vm.make build:"
>>>   Doing vm.make build:
>>>   All done.
>>>   cd bsd_amd64_compiler2/product&&  ./test_gamma
>>>   Using java runtime at: /Users/stephen/Library/Java/JavaVirtualMachines/1.7.0_04-2012_03_04.jdk/Contents/Home/jre
>>>   Error occurred during initialization of VM
>>>   java.lang.NullPointerException
>>> 	at java.util.Hashtable.put(Hashtable.java:432)
>>> 	at java.lang.System.initProperties(Native Method)
>>> 	at java.lang.System.initializeSystemClass(System.java:1115)
>> OK, I think I figured it out. It's our old friend LANG.
>>
>> Earlier in this thread, John had observed
>>
>>> The NPE is because libjava.dylib is handing a null value to Hashtable, for the key "user.language", in System.c.
>> The user.language property comes from (or at least is related to) the LANG environment variable. IfLANG is unset, I get this crash in test_gamma. If LANG is set to en_US.UTF-8 the build succeeds.
> 
> After adding LANG=C my build on Mac OS X 10.6.8 completed.
> 
> However I still have the error running SwingSet2.jar (also present on MLVM)
> 
> ./build/macosx-amd64/j2sdk-bundle/1.8.0.jdk/Contents/Home/bin/java -jar /Developer/Extras/Java/JFC/SwingSet2/SwingSet2.jar
> 
> Exception in thread "main" java.awt.HeadlessException
>   at sun.java2d.HeadlessGraphicsEnvironment.getDefaultScreenDevice(HeadlessGraphicsEnvironment.java:77)
>   at SwingSet2.main(SwingSet2.java:251)
> 
> FYI: updated build scripts: https://gist.github.com/1980690
> 


More information about the macosx-port-dev mailing list