IBM Support

Changing Java versions in Rule Studio or Rule Designer causes compilation errors

Question & Answer


Question

Why do I see compilation errors like "[B2X] Cannot find execution class 'test.myClass' for translating business class 'test.myClass'" on BOM classes when changing the JDK version in Rule Studio or Rule Designer?

Cause

The eXecution Object Model (XOM) classes are compiled in a previous JDK version and do not match the ones expected in the new version.

The same issue occurs when executing rules in Rule Execution Server a ruleset which XOM was compiled with a JDK different from the one running the server. See technote Cannot translate class "test.myClass".

Answer

Recompile the XOM classes with the new JDK version used by Rule Studio or Rule Designer.

[{"Product":{"code":"SS6MTS","label":"WebSphere ILOG JRules"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Modules:Rule Studio (Eclipse)","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.1;7.0;6.7","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}},{"Product":{"code":"SSQP76","label":"IBM Operational Decision Manager"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Modules:Rule Studio","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.5;8.0;7.5;7.1","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
15 June 2018

UID

swg21597719