在 64 位 linux 上安装 32 位 jvm [英] Installing 32 bit jvm on 64 bit linux
问题描述
我正在尝试在 64 位 linux 机器上执行 JNI 调用,但该库仅在 32 位机器上受支持.我可以强制我的 64 位 linux 使用 32 位 jvm 吗?当我输入 java -d32 version 时,我收到消息此平台不支持运行 32 位 jvm".
I am trying to execute a JNI call on a 64 bit linux machine but the library is only supported on a 32 bit machine. Can I force my 64 bit linux to use a 32 bit jvm? when I type java -d32 version, I get the message "Running a 32 bit jvm is not supported this platform".
我想知道如何在 64 位机器上安装 32 位 jvm 以便我可以让我的本机库工作
I would like to know how to install a 32 bit jvm on the 64 bit machine so I can get my native library to work
推荐答案
在同一个 Linux 系统上,您通常不能同时拥有 64 位和 32 位 JDK (根据 Oracle).如果您卸载 64 位并使用 Synaptic 包管理器或从 Oracle 下载安装 32 位,则应该没问题.
It appears that you cannot typically have both 64 bit and 32 bit JDK on the same Linux system (according to Oracle). If you uninstall the 64 bit and install the 32 bit using the Synaptic Package manager or by downloading from Oracle, you should be fine.
不幸的是,我在工作,没有我的 Ubuntu 机器来测试.
Unfortunately I'm at work and don't have my Ubuntu machine with me to test.
这篇关于在 64 位 linux 上安装 32 位 jvm的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!