External Jar files to Pega

I Want to know how to import the external jar file to pega. where we should keep the files?

How we will import those jar files to Pega in Function or in COnnect-Java...?

The Package we need to import those class files in library function..?

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.


Keep up to date on this post and subscribe to comments

September 27, 2012 - 2:18pm

Place the Jar file under application server's lib directory.

Update Dynamic System Settings Pega-RULES •compiler/defaultPaths to specify the path to jar file. Below example of specifying multiple jar files.

you have to restart the server after updating this DSS

Import as package.* in library / connect java

September 27, 2012 - 5:21pm

Hope this would help you


Any configuration changes you have done you need to restart the server to get it reflected.


October 1, 2012 - 7:20am

Thanks For ur Kind Replies :-)

I didnt understand that after mentioning the Jar Locations, how we need to use that Java classes or Jar in utility Functions and in Activities...??

can u please give me with an example?

October 3, 2012 - 8:09am


You have to access the class name with full qualified name meaning that class name should included with package name.

For example:
You have a class to Parse xmls called "ParseXML" in the package "com.parse.util" and this class have a method "parseXML("")" to parse the xml also this class is been packaged in Parse.jar file and then it is been deployed to the server.

Now you can access this class and its method in the activity using

com.parse.util.ParseXML xml = new com.parse.util.ParseXML();


December 14, 2014 - 1:20am

Can we upload external jar (signed external jars) as a binary file in Pega Dev portal and refer it in an activity ? Has anybody implemented this approach ?