Exception in thread "main" java.lang.NoClassDefFoundError
Hi all,
I had a totally running enviroment with Talend for Big Data on Ubuntu Linux (12.04 LTS).
We have changed the Java version from 1.6 to 1.7 with command: sudo update-alternatives --config java and then switched back to Java 1.6
Now all Talend jobs don't work.
The error is (in this example for the job "User" in the project BD):
Exception in thread "main" java.lang.NoClassDefFoundError: bd/user_0_1/User
Caused by: java.lang.ClassNotFoundException: bd.user_0_1.User
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)
Could not find the main class: bd.user_0_1.User. Program will exit.
I think this happen because the variables JAVA_HOME and CLASSPATH does not have a value.
Anyone know how to set this variables ?
We are using Talend for Big Data version 5.5.1.r118616
java -version return:
java version "1.6.0_33"
OpenJDK Runtime Environment (IcedTea6 1.13.5) (6b33-1.13.5-1ubuntu0.12.04)
OpenJDK 64-Bit Server VM (build 23.25-b01, mixed mode)
Thanks in advance
OK I am running out of ideas. I have never seen a studio which does lacks these fundamental settings.
Perhaps it helps if you give the studio an explicit -vm parameter pointing to the java home in the ini file.