ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Clark" <>
Subject Re: Problem running junit on Solaris 64 bit
Date Fri, 24 Aug 2007 21:39:20 GMT
On Friday August 24, 2007, cactuar <> wrote:
> I am trying to run my JNI code using JUnit within Ant on Solaris
> 5.8. However, it fails to load my shared object and gives me this
> error message.
> Can't load Sparc v9 64-bit .so on a Sparc 32-bit platform

> How is it trying to run on the 32 bit mode while I am trying to run
> on the 64 bit mode?  Is there something I need to set in my Ant
> script?

Sounds like the VM is defaulting to 32-bit mode. If you are launching 
a standalone VM for your JUnit tests, try adding the "-d64" command 
line option.

If you are running the JUnit tests inside of Ant, add the "-d64" 
option to the ANT_OPTS env. variable before starting Ant.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message