有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

java异常cplex

我有一个例外:

Exception in thread "main" java.lang.UnsatisfiedLinkError: ilog.concert.cppimpl.concert_wrapJNI.swig_module_init()V
    at ilog.concert.cppimpl.concert_wrapJNI.swig_module_init(Native Method)
    at ilog.concert.cppimpl.concert_wrapJNI.<clinit>(concert_wrapJNI.java:1619)
    at ilog.concert.cppimpl.concert_wrap.setDebugWrappers(concert_wrap.java:18)
    at ilog.opl.IloOplFactory.setDebugMode(IloOplFactory.java:170)

我正在windows上使用以下类路径:

<?xml version="1.0" encoding="UTF-8"?>
<classpath>
    <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER">
        <attributes>
            <attribute name="org.eclipse.jdt.launching.CLASSPATH_ATTR_LIBRARY_PATH_ENTRY" value="C:/IBM/opl/bin/x64_win64"/>
        </attributes>
    </classpathentry>
    <classpathentry kind="src" path="src"/>
    <classpathentry kind="lib" path="C:/IBM/cplex/lib/cplex.jar">
        <attributes>
            <attribute name="org.eclipse.jdt.launching.CLASSPATH_ATTR_LIBRARY_PATH_ENTRY" value="C:/IBM/cplex/bin"/>
        </attributes>
    </classpathentry>
    <classpathentry kind="lib" path="C:/IBM/opl/lib/oplall.jar"/>
    <classpathentry kind="output" path="bin"/>
</classpath>

谢谢你的帮助


共 (1) 个答案

  1. # 1 楼答案

    不要同时将oplall.jarcplex.jar放在类路径上。那可能会引起麻烦

    还要确保包含CPLEX DLL的路径位于java.library.path