Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Unable to save rule that references external java classes



You, as an application developer, are unable to save and execute rules that rely on third-party / external classes. These classes are available on the application server. 

Error Messages

18. ERROR in file://runtime:/PRGenJava/com/pegarules/generated/activity/ (at line 1509)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot be resolved to a type
19. ERROR in file://runtime:/PRGenJava/com/pegarules/generated/activity/ (at line 1515)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot be resolved to a type

Steps to Reproduce

Attempt to save or run any activity that depends on third-party / external classes to observe the issue.

Root Cause

The root cause of this problem is defect/misconfiguration in the operating environment. The third-party / external classes were not available on the PRPC compile time classpath, and thus rules could not be saved or compiled for execution correctly. 


Refer the below linked PDN article about the PRPC 5.x classpaths:

If you are using WebSphere and added your library jars as shared libraries accessible to the PRPC application, then the runtime classpath is addressed. You still need to make sure the classes are available on the compile time class path. This is normally done using a Dynamic System Setting. See the “Compile Time Class Path” section of the linked PDN document for additional information.
Suggest Edit

Published July 2, 2015 - Updated October 8, 2020

Did you find this content helpful? Yes No

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us