Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

java.lang.NoClassDefFoundError

Hello ,
Im working with talend for more than a month . i dont know why the following java error occurs suddenly while running a job .
before this i didn't changed anything in talend or in job . executed the job as daily but suddenly i got this error .
can any one help me for this issue .
java.lang.NoClassDefFoundError: infobuilder/report_and_mail_0_1/Report_And_Mail
Caused by: java.lang.ClassNotFoundException: infobuilder.report_and_mail_0_1.Report_And_Mail
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: infobuilder.report_and_mail_0_1.Report_And_Mail. Program will exit.
Exception in thread "main"
Thanks in Advance
Nilesh

Labels (2)
38 Replies
Anonymous
Not applicable
Author

i have installed talend open studio in a other folder and checked with a simple job now its working fine .
how can i migrate all jobs from old project to this new one?
Anonymous
Not applicable
Author

Hi
Please follows the steps to migrate all items from old studio to new studio:
1. Empty Recycle bin in old studio.
2. Right click on Job design in old studio and select 'export item' option.
3. Select 'Select archive file' option and browse a archive file path, click on 'Select All' button.
4. Backup the export archive file.
5. Open the new studio, right click on the Job Design and select 'import items' option, and then import all the items from the archive file.
Best regards
Shong
Anonymous
Not applicable
Author

thanks for ur help . it works
Anonymous
Not applicable
Author

Hi
Good news! Thanks for your feedback!
Best regards
Shong
Anonymous
Not applicable
Author

hi ,
I got "java.lang.ClassNotFoundException" error after that i changed the talend path to another drive then started working normally but now again im getting the same error in this path also .
java.lang.NoClassDefFoundError: infobuilder/eventtrigger_sendmail_0_1/eventtrigger_sendmail
Caused by: java.lang.ClassNotFoundException: infobuilder.eventtrigger_sendmail_0_1.eventtrigger_sendmail
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class: infobuilder.eventtrigger_sendmail_0_1.eventtrigger_sendmail. Program will exit.
Exception in thread "main"
can anyone help me how this error occurs and how can i solve it ?
With Regards ,
Nilesh R
jkrfs
Creator
Creator

If re-importing doesn't work, can I see a screenshot of your job? I had this issue, and it wasn't anything that I could find on the forums but a weird error with how the components were laid out.
Here is my post where I had the same issue: https://community.talend.com/t5/Design-and-Development/resolved-Another-java-lang-NoClassDefFoundErr...
Anonymous
Not applicable
Author

thanks for ur valuable reply . i changed the path of environmental variables and now it works .
_AnonymousUser
Specialist III
Specialist III

I have the same issue. What environment variable have you changed the value?
_AnonymousUser
Specialist III
Specialist III

Hi SHong,
I have same problem..in my case for new installation and new job also am getting the same issue.
please help me.
fbehfar
Contributor
Contributor

I had the same problem, and it was solved by removing the spaces in the path.
My project directory (path) had a space. Remove any space in all Talend path.
This one works C:\Talend\TalendWorkspace, this C:\Dev\Talend Workspace doesn't!