在64位Linux上安装32位Java虚拟机 [英] Installing 32 bit jvm on 64 bit linux

查看:269
本文介绍了在64位Linux上安装32位Java虚拟机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在64位Linux计算机上执行JNI调用,但是该库仅在32位计算机上受支持。我可以强制我的64位Linux使用32位jvm吗?当我输入java -d32版本时,收到消息此平台不支持运行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)。如果您使用Synaptic软件包管理器或从Oracle下载来卸载64位并安装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位Java虚拟机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆