我在操作系统为 Red Hat Linux 的服务器上安装了 IBM ILOG v12.2 for Linux。我编写了 Java 接口,当我在服务器上运行它时,显示以下错误:
Native code library failed to load: ensure the appropriate library (opl<VERSION>.dll/.so) is in your path.
Exception in thread "main" java.lang.ExceptionInInitializerError
at ilog.concert.cppimpl.concert_wrap.setDebugWrappers(concert_wrap.java:34)
at ilog.opl.IloOplFactory.setDebugMode(IloOplFactory.java:152)
at MainNetworkVirtulization.main(MainNetworkVirtulization.java:185)
Caused by: java.lang.RuntimeException: Native code library failed to load: ensure the appropriate library (opl<VERSION>.dll/.so) is in your path.
at ilog.concert.IloJNILoader.loadJNI(IloJNILoader.java:79)
at ilog.concert.cppimpl.concert_wrapJNI.<clinit>(concert_wrapJNI.java:15)
... 3 more
Java Result: 1
顺便说一句,这个 Java 接口代码在我的另一台 Windows 笔记本电脑上运行良好。有谁知道如何纠正上述错误?谢谢!