One Star

java.lang.NoClassDefFoundError: Integer

Hi,
I'm using TOS 6.1.1 and getting below error while running my simple which has only one component tMsgBox.
And using JDK 7 and Windows 7.  My Executable files/setup is in C:\Talend\TOS_DI-20151214_1327-V6.1.1

Starting job test at 10:47 22/01/2016.
java.lang.NoClassDefFoundError: Integer
 at java.lang.Class.getDeclaredMethods0(Native Method)
 at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
 at java.lang.Class.getMethod0(Unknown Source)
 at java.lang.Class.getMethod(Unknown Source)
 at sun.launcher.LauncherHelper.getMainMethod(Unknown Source)
 at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)
Caused by: java.lang.ClassNotFoundException: Integer
 at java.net.URLClassLoader$1.run(Unknown Source)
 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)
 ... 6 more
Exception in thread "main"
Job test ended at 10:47 22/01/2016.




































































































Regards,
R.Bharath
20 REPLIES
Employee

Re: java.lang.NoClassDefFoundError: Integer

use Java 8 instead.
Thomas Steinborn
VP Product Management

Re: java.lang.NoClassDefFoundError: Integer

I am also having this same issue. My code is simply attempting to rename a file on an FTP server.
The issue remains after reinstalling Talend
I am using: 
Windows 10 Pro
JDK 8_73
C:\Talend\TOS_DI-20151214_1327-V6.1.1
java.lang.NoClassDefFoundError: Integer
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
at java.lang.Class.privateGetMethodRecursive(Unknown Source)
at java.lang.Class.getMethod0(Unknown Source)
at java.lang.Class.getMethod(Unknown Source)
at sun.launcher.LauncherHelper.validateMainClass(Unknown Source)
at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)
Caused by: java.lang.ClassNotFoundException: Integer
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)
... 7 more
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" 
Job FTPFileRename ended at 07:38 13/02/2016.
One Star

Re: java.lang.NoClassDefFoundError: Integer

I am having the same issue after upgrading to TOS_DI-20151029_1337-V6.1.0 and java 8 update 73 64 bit.
java.lang.NoClassDefFoundError: Integer
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
at java.lang.Class.getMethod0(Unknown Source)
at java.lang.Class.getMethod(Unknown Source)
at sun.launcher.LauncherHelper.getMainMethod(Unknown Source)
at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)
Caused by: java.lang.ClassNotFoundException: Integer
at java.net.URLClassLoader$1.run(Unknown Source)
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)
... 6 more
Exception in thread "main" 
Moderator

Re: java.lang.NoClassDefFoundError: Integer

Hi,
Are you using oracle java 8? Does this issue repro on all your jobs or a specific job?
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: java.lang.NoClassDefFoundError: Integer

Hi,
I an on Windows 7, TOS_DI_6.1.1_20151214_1327 installed on "C:\" directory, Java 8.
I am the same problem.
I try to add File delimited metadata and at the overview I have the error :

java.lang.NoClassDefFoundError: Integer
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
at java.lang.Class.privateGetMethodRecursive(Unknown Source)
at java.lang.Class.getMethod0(Unknown Source)
at java.lang.Class.getMethod(Unknown Source)
at sun.launcher.LauncherHelper.validateMainClass(Unknown Source)
at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)
Caused by: java.lang.ClassNotFoundException: Integer
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)
... 7 more
Error: A JNI error has occurred, please check your installation and try again
Erreur de prévisualisation. Des paramètres doivent être modifiés`
Note : Les erreurs de prévisualisation sont généralement liées à un mauvais paramétrage de l'encodage.
org.talend.designer.runprocess.shadow.ShadowFilePreview.preview(ShadowFilePreview.java:90)
org.talend.metadata.managment.ui.utils.ShadowProcessHelper.getCsvArray(ShadowProcessHelper.java:383)
org.talend.repository.ui.wizards.metadata.connection.files.delimited.DelimitedFileStep2Form$PreviewProcessor.nonUIProcessInThread(DelimitedFileStep2Form.java:1309)
org.talend.commons.ui.swt.thread.SWTUIThreadProcessor$1.run(SWTUIThreadProcessor.java:74)
Best regards
Massimo
One Star

Re: java.lang.NoClassDefFoundError: Integer

When I try on Windows 10, same Talend version TOS_DI_6.1.1_20151214_1327 installed on "C:\" directory and Java 8 (build 1.8.0_66-b18), that's all good.
:-(
There is a metter to test good configuration of Talend on the machine?
Thanks for all help
Massimo
One Star

Re: java.lang.NoClassDefFoundError: Integer

Hi,
I solved the proble by upgrade
Java 1.8.0 up 45
to
1.8.0 up 77
Regards
Massimo

Re: java.lang.NoClassDefFoundError: Integer

Hi,
I have just installed TOS_DI-20151214_1327-V6.1.1 on windows 10 64 bit along with JRE jre1.8.0_77
When I created a simple job which picks data from a table and writes into excel sheet, it is failing with below error
Starting job Test at 12:36 08/04/2016.
java.lang.NoClassDefFoundError: Integer
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
at java.lang.Class.privateGetMethodRecursive(Unknown Source)
at java.lang.Class.getMethod0(Unknown Source)
at java.lang.Class.getMethod(Unknown Source)
at sun.launcher.LauncherHelper.validateMainClass(Unknown Source)
at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)
Caused by: java.lang.ClassNotFoundException: Integer
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)
... 7 more
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" 
Job Test ended at 12:36 08/04/2016.
Can someone pls help me in getting this resolved
One Star

Re: java.lang.NoClassDefFoundError: Integer

I had the same problem and I found that the Preferences were set up for the wrong JDK  a java 7 JDK in my case).  It can be fixed by going to Window > Preferences > Installed JREs, selecting Edit and browsing for the appropriate JRE (jdk1.8.0_40 in my case.
One Star

Re: java.lang.NoClassDefFoundError: Integer

I have the same issue. win 10. java 8_91 and talend 6.2.1...
Window > Preferences > Installed JREs seems to be ok.
what else can cause this error while trying to add excel to metadata?
thanks
Moderator

Re: java.lang.NoClassDefFoundError: Integer

Hi,
Could you please try to  jre 1.8.0_51 instead? It seems that there is something wrong with jre 1.8.0_92.
Let us know if it is Ok with you.
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: java.lang.NoClassDefFoundError: Integer

Thanks - downgrading to JAVA 8 update 51 solves the issue
Moderator

Re: java.lang.NoClassDefFoundError: Integer

Hi danny,
Thanks for your feedback.
Feel free to post your issue on forum.
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: java.lang.NoClassDefFoundError: Integer

Hi everyone,
I had same issue and solved by just moving JDK path to the beginning of PATH system variable.
Now my PATH var starts with:
 "C:\Program Files\Java\jdk1.8.0_51\bin;C:\ProgramData\Oracle\Java\javapath;..."
- Win7Pro + JDK 1.8.0_51 (x64)
- TOS ESB 6.3.0 ( Window > Preferences > Installed JREs only shows 1.0.0_51 )
Moderator

Re: java.lang.NoClassDefFoundError: Integer

Hi Suketta,
Thanks for sharing your solution with us.
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: java.lang.NoClassDefFoundError: Integer

I too faced preview issues. Above all the Informations helped me lot. Thanks for all. Btw If you faced Preview error,
java.lang.NoClassDefFoundError: Integer
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
at java.lang.Class.privateGetMethodRecursive(Unknown Source)
at java.lang.Class.getMethod0(Unknown Source)
at java.lang.Class.getMethod(Unknown Source)
at sun.launcher.LauncherHelper.validateMainClass(Unknown Source)
at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)
Caused by: java.lang.ClassNotFoundException: Integer
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)
… 7 more
Solutions:
1. Check your Java (JDK and JRE) Installed properly 
2. Your Java version and Talend version is both suitable or not
3. In the Environment variable > System variable Java JRE path should mention on first (Start's from Java to other paths)
4. Check your Windows > Preferences > Java > Installed JRE's > showing java path or not. It must show.
I hope above list of steps help you to fix preview error. I resolved by above steps.
Thanks,
Sabari 
One Star

Re: java.lang.NoClassDefFoundError: Integer

I too faced preview issues. Above all the Informations helped me lot. Thanks for all. Btw If you faced Preview error,

java.lang.NoClassDefFoundError: Integer
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
at java.lang.Class.privateGetMethodRecursive(Unknown Source)
at java.lang.Class.getMethod0(Unknown Source)
at java.lang.Class.getMethod(Unknown Source)
at sun.launcher.LauncherHelper.validateMainClass(Unknown Source)
at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)
Caused by: java.lang.ClassNotFoundException: Integer
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)
… 7 more
Solutions:
1. Check your Java (JDK and JRE) Installed properly 
2. Your Java version and Talend version is both suitable or not
3. In the Environment variable > System variable Java JRE path should mention on first (Start's from Java to other paths)
4. Check your Windows > Preferences > Java > Installed JRE's > showing java path or not. It must show.
I hope above list of steps help you to fix preview error. I resolved by above steps.
Thanks,
Sabari 
Moderator

Re: java.lang.NoClassDefFoundError: Integer

Hi Sabamanu,
Thanks for sharing your solution with us.
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Two Stars

Re: java.lang.NoClassDefFoundError: Integer

Hi,

I have a TOS_BD-20170510_1410-V6.4.0 version running on WINDOWS 10 

Java version jdk1.8.0_162 and before I  tried jdk1.8.0_20

the same problem to open excel or csv file

get error: 


java.lang.NoClassDefFoundError: Integer
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
at java.lang.Class.privateGetMethodRecursive(Unknown Source)
at java.lang.Class.getMethod0(Unknown Source)
at java.lang.Class.getMethod(Unknown Source)
at sun.launcher.LauncherHelper.validateMainClass(Unknown Source)
at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)
Caused by: java.lang.ClassNotFoundException: Integer
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)
... 7 more
Error: A JNI error has occurred, please check your installation and try again

 

do you have some solution for me?

thank you

marina

Moderator

Re: java.lang.NoClassDefFoundError: Integer

Hello,

Please ensure JDK bin is included in your PATH environment variable and is being reached. Could you please try to reinstall your TOS_BD-20170510_1410-V6.4.0 to see if it works?

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.