on 02-25-2013 4:12 AM
Dear Experts,
I'm trying to create an UDF using the external commons-codec-1.4.jar. I downloaded the jar file to my desktop and placed it inside the folder path (com/test/encoding/) and imported the jar file to PI 7.31 as imported archive ( i can see the path as com/test/encoding/ in imported archive with file name com.zip)..but, when I use the import com.test.encoding.* in the UDF, its throwing the error package doesn't exist.. not sure what's wrong with this (I'm referring the Imported archive in archived used of function library too)...
Any suggestions?
Thanks.
I think its resolved after I imported the jar file directly (without zipping) and used the import org.apache.commons.codec.binary.*.. thanks everyone for your inputs
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Joe,
Once you have downloaded the commons-codec-1.4.zip, you need to extract its contents. There are actually 3 (commons-codec-1.4.jar, commons-codec-1.4-sources.jar, commons-codec-1.4javadoc.jar), you only need to place commons-codec-1.4.jar as an imported archive. Refer it in your archives used and Import Instructions.
Hope this helps,
Mark
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Joe,
if you are trying to include the external jar i would suggest you to directly add the jar using Add External JARS option in Configure Build path of the project.Once you click on the button you can navigate to desired folder and select the required Jar.This might solve your problem.Please try it
Thanks & Regards,
Keerthi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.