Decision Optimization

Decision Optimization

Delivers prescriptive analytics capabilities and decision intelligence to improve decision-making.

 View Only
Expand all | Collapse all

OPL runtime not available when launching IDE: Native library failed to load

  • 1.  OPL runtime not available when launching IDE: Native library failed to load

    Posted Wed February 09, 2011 03:54 AM

    Originally posted by: SystemAdmin


    Hi,

    I am trying to launch IBM ILOG Optimization Studio 12.2 (32 bit) IDE on my Windows XP (with service pack 3) running 32 bit Intel Core2 Duo processor. The installation was successful. But when I try to launch (following "All Programs" -> "IBM ILOG" -> "CPLEX Optimization Studio Academic Research 12.2" -> CPLEX Studio IDE") I get the following errors (the snapshot attached).
    org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter$TerminatingClassNotFoundException: An error occurred while automatically activating bundle ilog.odms.ide.opllang (19).
    at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:125)
    at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:427)
    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:193)
    at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:370)
    at org.eclipse.osgi.framework.internal.core.SingleSourcePackage.loadClass(SingleSourcePackage.java:33)
    at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:443)
    at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:399)
    at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:387)
    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:87)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:618)
    at ilog.odms.ide.ui.IloUIPlugin$2.run(IloUIPlugin.java:321)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
    Caused by: org.osgi.framework.BundleException: Exception in ilog.odms.ide.opllang.IloOplLangPlugin.start() of bundle ilog.odms.ide.opllang.
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:1028)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:984)
    at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
    at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:265)
    at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:400)
    at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:111)
    ... 11 more
    Caused by: java.lang.ExceptionInInitializerError
    at java.lang.J9VMInternals.initialize(J9VMInternals.java:222)
    at ilog.concert.cppimpl.concert_wrap.IloIsMTEnabled(concert_wrap.java:171)
    at ilog.odms.ide.opllang.IloOplLangPlugin.start(IloOplLangPlugin.java:111)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:1009)
    at java.security.AccessController.doPrivileged(AccessController.java:251)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:1003)
    ... 16 more
    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)
    at java.lang.J9VMInternals.initializeImpl(Native Method)
    at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
    ... 21 more

    The I tried to execute the oplrun.exe from command prompt. But then I get the following error message.
    "The system cannot execute the specified program."

    I have checked the PATH variable and see that all required libraries are included in the PATH, including the <installation_dir>\opl\bin\x86_win32\opl122.dll.

    Can anyone please help me to resolve the issue?

    Thanks in advance!
    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: OPL runtime not available when launching IDE: Native library failed to load

    Posted Wed February 09, 2011 09:08 AM

    Originally posted by: FredericDelhoume


    The fact that both oplrun and the OPL IDE have problems is strange, because they are in fact completely independant.
    Oplrun necessary dlls are taken from the bin\x86_win32 directory, but the IDE takes its native libraries from oplide\plugins\ilog.odms.ide.opllang.win32.win32.x86_12.2.0.b13_20100520144800 directory.
    If both fail then I suspect there is something in your PATH or installation that gives problems.

    You may try to first focus on oplrun, using the depends program to see what exact dlls it depends on.
    http://www.dependencywalker.com/
    dlls should be resolved to bin\x86_win32 ones.
    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: OPL runtime not available when launching IDE: Native library failed to load

    Posted Wed February 09, 2011 10:22 AM

    Originally posted by: SystemAdmin


    I see that you have mentioned PATH incuding <installation_dir>\opl\bin\x86_win32\opl122.dll. It should rather include <installation_dir>\opl\bin\x86_win32

    Hope it helps,
    Faisal
    #CPLEXOptimizers
    #DecisionOptimization