error when running a routine via tjavaFlex compnenent

Seventeen Stars

error when running a routine via tjavaFlex compnenent

hi,
once again i've got a problem ..
I've made a class to "pop" and parse mail files to extract attachment part.
I know that a tPop + tFileinputMail can do the job , but i have some "extra condition" to add
I've put the class in a routine following the exemple done by lolive&co ...and call a method to run it .
but i have the well known error :
Starting job tryParseRoutine at 13:31 25/09/2008.
Exception in thread "main" java.lang.NoClassDefFoundError: javax/mail/Part
at test.tryparseroutine_0_1.tryParseRoutine.tJavaFlex_1Process(tryParseRoutine.java:218)
at test.tryparseroutine_0_1.tryParseRoutine.runJobInTOS(tryParseRoutine.java:2666)
at test.tryparseroutine_0_1.tryParseRoutine.main(tryParseRoutine.java:2574)
Caused by: java.lang.ClassNotFoundException: javax.mail.Part
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336)
... 3 more

If i debug the code , it stop at the entry of the main method ...(aie !!)
but if i just go a step over , the code "restart" and do what 's expected !
Thanks for your help,
tell me if you need more information ...
Seventeen Stars

Re: error when running a routine via tjavaFlex compnenent

it seems that the tRunJob didn't find the libraries for the routine
Even if i had put the libraries in the Talend's lib and import the right class in the routine , it didn't work !
It's work by adding libraries with the right clic menu -> edit routine libraries -> and add jar from the javamail 1.4 lib
and it work fine and easy now to configure for any mailer .
thanks

Calling Talend Open Studio Users

The first 100 community members completing the Open Studio survey win a $10 gift voucher.

Start the survey

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Tutorial

Introduction to Talend Open Studio for Data Integration.

Watch