Menu ▾ ▴

#282 auto_bits detection fails on OS X Mavericks

v3.5.12
open
nobody
None
5
2013-10-28
2013-10-23
Li Xu
No

Up until mountain lion, setting wrapper.java.additional.auto_bits=TRUE correctly translates to -d64. I just installed Mavericks and in the same environment, it's now setting -d32 and my 64-bit VM (1.7) fails.

Discussion

  • Alexandre

    Alexandre - 2013-10-25

    Li Xu,
    Thank you for your message.
    This is a problem on our side, we don't handle product version composed of 2 digits such as 10.9 (like Mavericks). We always check for 3 digits (ex: 10.8.5).
    It will be fixed in a future version of the Wrapper.

    However, you can apply the fix yourself if you don't want to wait.

    • open the file src/bin/sh.script.in (note: you have probably renamed this file)
    • replace the line 284:

      OS_VER=sw_vers | grep 'ProductVersion:' | grep -o '[0-9]*\.[0-9]*\.[0-9]*'

    for:

    OS_VER=sw_vers | grep 'ProductVersion:' | grep -o '[0-9]*\.[0-9]*\.[0-9]*\|[0-9]*\.[0-9]*'

    • save the file and everything should be ok

    Don't hesitate to contact us if you have any questions.

     
  • Dannes Wessels

    Dannes Wessels - 2013-10-28

    On the mailing list I posted an alternative solution using the egrep tool instead; I just could not get grep working correctly, clearly you did.

     

Log in to post a comment.