简体   繁体   中英

How can I use a 32 bit native library in Java 7 on OSX

My Java application has a requirement to use a 32 bit native library on OSX.

Specifically I have a 32 bit ODBC driver and have some JNI code to use the driver, but there doesn't appear to be any 32 bit Java 7 JVM that will run on OSX.

I do not have the source code for the driver, so I cannot recompile it.

There is no JDBC driver for this product, which is why I am using ODBC.

I've looked around for 32 bit OpenJDK ports but the only project that might have supported it is dead.

Does anyone have any ideas?

I think the only answer for you (on JDK 7) is to use OBuildFactory to compile a 32-bit jdk. This question was similar and pointed me to these directions .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM