Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 978
Eric Milas Avatar asked Nov 01 '22 11:11

Eric Milas


1 Answers

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.

like image 63
Elliott Frisch Avatar answered Nov 15 '22 06:11

Elliott Frisch