“Issue with Java 1.5 on RHEL 8” 可以翻译为 “在RHEL 8上使用Java 1.5的问题”。

huangapple go评论73阅读模式
英文:

Issue with Java 1.5 on RHEL 8

问题

我遇到一个问题,试图查看在运行RHEL 8操作系统的服务器上的Java版本,该Java版本是1.5。
/usr/java/java/jdk1.5.0_11/bin/java -version

我收到的响应是:

> 尝试初始化HPI库时出错。
> 请检查您的安装,当HotSpot安装在JDK 1.2 Linux Production Release或任何JDK
> 1.1.x版本中时,HotSpot不会正常工作。
> 无法创建Java虚拟机。

有人有什么想法吗?
我想启动一个旧应用程序,无法在较新的Java版本上运行。

到目前为止,我已经尝试过:

  • 从.bin文件安装不同的Java 1.5版本
  • 检查文件权限(用户、执行权限等)
  • 从.rpm文件安装更近期的Java 1.5版本
英文:

I am facing an issue trying to see java version on a server that has as an OS RHEL 8. The java version is 1.5.
/usr/java/java/jdk1.5.0_11/bin/java -version

The response I get back is:

> There was an error trying to initialize the HPI library.
> Please check your installation, HotSpot does not work correctly when
> installed in the JDK 1.2 Linux Production Release, or with any JDK
> 1.1.x release.
> Could not create the Java virtual machine.

Does anyone have an idea?
I want to start an old app that can not run with newer java version.

So far I have tried:

  • Installing different java 1.5 version from a .bin file
  • Checked the file permissions (user, execution, etc...)
  • Install a more recent java 1.5 from an .rpm file

答案1

得分: 4

RHEL 8 于2019年发布。Java 1.5 于2004年发布。可以预期它不会受到更新操作系统的支持。而且在这个十年内使用Java 1.5是一个极大的安全风险。要么使用当前版本的Java/OpenJDK,要么按照@teapot418所说,使用较旧操作系统的虚拟机(这也可能带来风险)。如果您的软件与较新的JDK不兼容,您可以尝试使用JDK 8,这是一些OpenJDK分发版仍然支持的最近版本。

英文:

RHEL 8 was released in 2019. Java 1.5 in 2004. It should be expected that it is not supported by a more recent operating system. Also it is a crazy security risk to use Java 1.5 on this decade. Either use a current version of Java/OpenJDK or do as @teapot418 says and use a Virtual Machine of an older operating system (which could be its own risk). If there is an incompatibility of your software with newer JDKs you could try JDK 8, which is the nearest release still supported by some OpenJDK distributions.

答案2

得分: 0

谢谢您的帮助和想法。我成功地通过使用dnf安装libnsl,然后安装来自Oracle的1.5版本的java.rpm文件来设置它。

英文:

thank you for the assistance and your thoughts. I managed to set it up by installing libnsl with dnf and then install java 1.5 from oracle .rpm file

huangapple
  • 本文由 发表于 2023年5月10日 18:20:59
  • 转载请务必保留本文链接:https://go.coder-hub.com/76217274.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定