IBM Support

java.exe - Entry Point Not Found

Troubleshooting


Problem

When trying to execute the model from OPL IDE, I get a "Java.exe - Entry Point Not Found" error, with message "The procedure entry point *** could not be located in the dynamic link library dbkernel.dll"

Symptom

Execute the model from OPL IDE.

Get an error: "Java.exe - Entry Point Not Found"

Cause

This issue occurs when there is a conflict with the dbkernel.dll used by OPL and the one being loaded at runtime. This DLL is provided together with IBM ILOG CPLEX Optimization Studio, or with ILOG OPL among others.
The most common reason for facing the above error is when you have your PATH environment variable pointing to a wrong version of this DLL when running OPL IDE. The IDE searches for the dll among the directories specified by the PATH variable. In particular, each installation of OPL, either as a stand-alone product in earlier versions, or as part of CPLEX Optimization Studio more recently, automatically modifies the PATH variable to include the OPL directories containing DLLs. Therefore, if you install multiple versions of OPL, only the one associated with the last installation will work unless you make a suitable adjustment to the PATH to find the dlls for the version you wish to run.

Resolving The Problem

Check that in your PATH environment variable you do not have:

  • Other version of CPLEX (for instance, an older version)
  • Other products of ILOG (such as OPL Studio)
  • DLL for a non compatible platform of IBM ILOG CPLEX Optimization Studio (such as 64 bits version on a 32 bits machine).

Removing all the above references from the PATH setting will fix the current issue.

Notes:
Setting the environment variables in Windows can be done on the Advanced Tab of the Control Panel.

[{"Product":{"code":"SSSA5P","label":"IBM ILOG CPLEX Optimization Studio"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Computing environment","Platform":[{"code":"PF033","label":"Windows"}],"Version":"12.2","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
16 June 2018

UID

swg21458145