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

Library Compilation issue for external Jars



Error occurs when importing external JAR files to the system.

Error Messages

Error(s) detected while generating Java.

Compiler reported:

1. ERROR in /com/pegarules/generated/ (at line 50)
import com.amazonaws.*;

Steps to Reproduce

  1. Import the external JAR files to the system.
  2. Refer the classes which are a part of the imported Jar file in the Library rule.
  3. Save the Library rule.

Root Cause

When external JAR files are imported using the Import wizard, codeset and codeset version must be provided to the system. The system then created the com.pega.pegarules.bootstrap.codeset.version.<Code Set Name>/Default' Dynamic System Setting (DSS) based on the codeset and its version.
After the import, the application server must be restarted to activate the codeset. However, since the DSS setting is created, the system is unable to activate it.


Perform the following local-change:

Mention the same DSS setting in file if system does not consider the DSS setting.

For example, 
com.pega.pegarules.bootstrap.codeset.version.<Custome Codeset>=<Codeset Version>
Suggest Edit

Published October 5, 2018 - 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