error when running a routine via tjavaFlex compnenent

Seventeen Stars

error when running a routine via tjavaFlex compnenent

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(
at test.tryparseroutine_0_1.tryParseRoutine.runJobInTOS(
at test.tryparseroutine_0_1.tryParseRoutine.main(
Caused by: java.lang.ClassNotFoundException: javax.mail.Part
at Method)
at java.lang.ClassLoader.loadClass(
at sun.misc.Launcher$AppClassLoader.loadClass(
at java.lang.ClassLoader.loadClass(
at java.lang.ClassLoader.loadClassInternal(
... 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 .