简体   繁体   English

如何使用32位Java 8 Embedded JRE访问64位JNI库

[英]How to access 64 bit JNI lib using 32 bit Java 8 Embedded JRE

I created my custom JRE using Java 8 Embedded (I think it only support 32 bit JVM) 我使用Java 8 Embedded创建了自定义JRE(我认为它仅支持32位JVM)

System : Linux X86_64 系统:Linux X86_64

http://www.oracle.com/technetwork/java/embedded/downloads/java-embedded-java-se-download-359230.html http://www.oracle.com/technetwork/java/embedded/downloads/java-embedded-java-se-download-359230.html

when i access a 64 BIT system JNI library from my code .I get the following exception 当我从代码访问64位系统JNI库时,出现以下异常

" Native library (linux-x86/xyz.so) not found in resource path " “在资源路径中找不到本机库(linux-x86 / xyz.so)”

but I've the corresponding 64 bit xyz.so in the java library path.I didn't get the 32 bit version of xyz.so lib .Is there any way i can access the 64 JNI lib from 32 bit JVM. 但是我在java库路径中有相应的64位xyz.so.我没有获得xyz.so lib的32位版本。有什么办法可以从32位JVM访问64 JNI lib。 Any help really appreciated. 任何帮助真的很感激。

No, you cannot do that. 不,你不能那样做。 You need a 32-bit library or a 64-bit JVM. 您需要一个32位库或一个64位JVM。

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

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