
Specialist III
2008-10-01
12:41 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
using org.apache.commons.codec.binary.Base64
Hi there,
I am using OpenStudio 3.0.0M3 and facing a roblem with the commons codec Base64 encoder. I can't even use the encoder to be precise.
The class is part of the org.apache.commons.codec.binary inside the commons-codec-1.3.jar which is inside the ./lib/java folder. So I thought its already in the classpath and the only thing to do in my tJavaRow is to add the "import org.apache.commons.codec.binary.Base64" statement.
Sadly, this is not working. As I try to run the job I get an "java.lang.NoClassDefFoundError: org/apache/commons/codec/binary/Base64" exception.
I am accessing the class like "Base64.encodeBase64(something)" in my tJavaRow.
Could you please give me advise how to use this class?
Greetings,
Maximilian
I am using OpenStudio 3.0.0M3 and facing a roblem with the commons codec Base64 encoder. I can't even use the encoder to be precise.
The class is part of the org.apache.commons.codec.binary inside the commons-codec-1.3.jar which is inside the ./lib/java folder. So I thought its already in the classpath and the only thing to do in my tJavaRow is to add the "import org.apache.commons.codec.binary.Base64" statement.
Sadly, this is not working. As I try to run the job I get an "java.lang.NoClassDefFoundError: org/apache/commons/codec/binary/Base64" exception.
I am accessing the class like "Base64.encodeBase64(something)" in my tJavaRow.
Could you please give me advise how to use this class?
Greetings,
Maximilian
695 Views
4 Replies

Anonymous
Not applicable
2008-10-03
06:23 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi
Did you tried to add libraries thanks "preferences" !?
Did you tried to add libraries thanks "preferences" !?
695 Views

Anonymous
Not applicable
2008-10-05
02:47 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
HI
This problem is very similar to what I faced with Apache modules.
Pls refere to this post.
https://community.talend.com/t5/Design-and-Development/org-talend-designer-components-commons-cannot...
Do let me knw if it worked for you.
Regards
Surya
This problem is very similar to what I faced with Apache modules.
Pls refere to this post.
https://community.talend.com/t5/Design-and-Development/org-talend-designer-components-commons-cannot...
Do let me knw if it worked for you.
Regards
Surya
695 Views


Contributor III
2011-09-02
11:33 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
For me the solution with tLibraryLoad worked!
Thankyou very much!
Anyway maybe in the meanwhile something better has been implemented?
Thanks
Thankyou very much!
Anyway maybe in the meanwhile something better has been implemented?
Thanks
695 Views

Anonymous
Not applicable
2011-09-04
11:07 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
For me the solution with tLibraryLoad worked!
Thankyou very much!
Anyway maybe in the meanwhile something better has been implemented?
Thanks
There are two ways to import and use a external jar.
- Use tLibraryLoad to load the jar in the job.
- Create a custom routine, import the jar in the routine and then call the routine in the job.
Best regards
Shong
695 Views
