简体   繁体   English

如何在OSX上的Java 7中使用32位本机库

[英]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. 我的Java应用程序需要在OSX上使用32位本机库。

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. 具体来说,我有一个32位ODBC驱动程序,并有一些JNI代码来使用驱动程序,但似乎没有任何32位Java 7 JVM将在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. 此产品没有JDBC驱动程序,这就是我使用ODBC的原因。

I've looked around for 32 bit OpenJDK ports but the only project that might have supported it is dead. 我已经四处寻找32位OpenJDK端口,但唯一可能支持它的项目已经死了。

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. 我认为唯一的答案(在JDK 7上)是使用OBuildFactory来编译32位jdk。 This question was similar and pointed me to these directions . 这个问题很相似,并指出了这些方向

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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