RFR: 7113349 JDK8 port to macosx
stephen.bannasch at deanbrook.org
Mon Mar 5 17:40:55 PST 2012
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
>> 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
FYI: updated build scripts: https://gist.github.com/1980690
More information about the macosx-port-dev