简体   繁体   中英

Error: Could not find the main class

I'm using Talend to perform some ETL and I'm getting the following error when I try to run it.

Starting job bmcu_att_insert at 17:11 26/03/2012.

Exception in thread "main" java.lang.NoClassDefFoundError: bmcu_att_summ/bmcu_att_insert_0_1/bmcu_att_insert
Caused by: java.lang.ClassNotFoundException: bmcu_att_summ.bmcu_att_insert_0_1.bmcu_att_insert
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:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Could not find the main class: bmcu_att_summ.bmcu_att_insert_0_1.bmcu_att_insert.  Program will exit.
Job bmcu_att_insert ended at 17:11 26/03/2012. [exit code=1]

Here is a screen shot of what I'm trying to run as well:

在此处输入图片说明

It turns out I just needed to reinstall the program for it to work. How silly.

This may sound silly, but give it a try anyway.

Create a new job within the same project and copy and paste all your components from that one into the new one (you can just do ctrl+a, ctrl+c and then paste into the new job, it'll keep everything).

Try running the new job instead.

我创建了一个新的Talend工作区,向该工作区添加了一个新项目,并将所有作业/组件导入了新工作区中的新项目,一切对我来说都很好

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM