Error: Could not find the main class
Domanda
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:
Soluzione
It turns out I just needed to reinstall the program for it to work. How silly.
Altri suggerimenti
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.
I Created a new Talend Workspace, added a new project to the workspace and imported all jobs/components to the new project in the new workspace and everything worked fine for me
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow