Thursday, February 11, 2010

Snow Leopard Note: Java 6 with 32-bit data model

After switching to Snow Leopard, many people realized that suddenly everything was Java 6.

Generally it is not a big deal, but for developers, when tinkering with native libraries, there may be some issues if these are compiled for 32-bit platforms.

There is a simple work around for this problem, in the form of a command-line switch:

    -d32          use a 32-bit data model if available
    -d64          use a 64-bit data model if available (implies -server, only for x86_64)

Thus, invoking the jvm with the -d32 switch (i.e. java -d32 [...]) may as well help you to move forward if no 64-bit version of a native library is available.

0 comments:

Post a Comment