java.lang.ClassNotFoundException:com.zerog.lax.LAX

问题描述 投票:0回答:2

我正在尝试安装来自 IBM 的名为 CPLEX 的软件。他们为我提供了一个 .bin 安装程序。当我尝试运行它时,如果找不到类,则会出现错误。由于我不熟悉这种语言,所以我不知道该怎么做以及如何修复它。我正在使用 Ubuntu 22.04,当我运行 java --version 时,我得到这个:

openjdk 11.0.20.1 2023-08-24
OpenJDK Runtime Environment (build 11.0.20.1+1-post-Ubuntu-0ubuntu122.04)
OpenJDK 64-Bit Server VM (build 11.0.20.1+1-post-Ubuntu-0ubuntu122.04, mixed mode, sharing)

我遇到的错误:

ubuntu@ip-172-30-0-248:~$ ./cos_installer-12.10.0.0.R0-CC439ML-linux-x86-64.bin
Preparing to install
Extracting the JRE from the installer archive...
Unpacking the JRE...
Extracting the installation resources from the installer archive...
Configuring the installer for this system's environment...

Launching installer...

Error: Could not find or load main class com.zerog.lax.LAX
Caused by: java.lang.ClassNotFoundException: com.zerog.lax.LAX
java cplex
2个回答
0
投票

这“感觉”像是版本不兼容。

您的 CPLEX 12.10.0 已严重过时:它是 2019 年的版本。

您尝试安装的这个版本官方仅支持 Ubuntu <= 18 LTS which means you are not only using an future LTS version (20 LTS; slow iteration) but even one more future LTS version (22 LTS).

您的错误与安装程序工具(基于 Java)有关,虽然人们期望有一定的向后兼容性,尤其是 Java 11 (LTS),但您提供的 Java 11 版本和预期内容可能存在一些问题。但这只是猜测。

解决方法

答:

我强烈建议您获取更新的 CPLEX 版本。根据您的使用情况,您可能还会看到其他问题(例如,不支持 python > 3.7)。

乙:

如果那不可能,那就不好了,请考虑降级你的 Linux 发行版(再次强调:这不是最好的想法)。

C:

最后的建议:联系他们的支持人员,尽管我希望他们也告诉您,您的操作系统发行版不受支持。


0
投票

我在 Ubuntu2204 和 CPLEX 12.10 上也遇到了同样的问题。我通过将 CPLEX 版本更新到当前版本(22.1)解决了这个问题

© www.soinside.com 2019 - 2024. All rights reserved.