cancel
Showing results for 
Search instead for 
Did you mean: 

Using External .jar file in ESR for UDF

former_member187447
Participant
0 Kudos

Hi Folks,

I am trying to use an external .jar file which has a .java program which I need to use in my UDF.

I have imported the external jar as imported archive into PI and the File I imported is common-Lang3-3.4-src.zip from the following link

Lang – Download Apache Commons Lang

After importing the the .jar the .java is in the following path as shown

Name                                                          Path

StringEscapeUtils.java                           commons-lang3-3.4-src/src/main/java/org/apache/commons/lang3/

Now I am having issues importing it into UDF.

should I instantiate the .java class in my UDF before I can use it?

Regards

kalyan.

Accepted Solutions (1)

Accepted Solutions (1)

former_member184720
Active Contributor
0 Kudos

Your zip file must have the .class files not the .java files

Go through below blog -

former_member187447
Participant
0 Kudos

Wow, this is exactly what I was looking for. Thanks Hareesh.

Regards

Kalyan.

Answers (0)