Four Stars

java.lang.NoClassDefFoundError: Integer (TOS_BD 6.5.1)

Hi,

I have installed TOS_BD 6.5.1.

And trying to run job which is testing connectivity with MongoDB database 3.6. In repository I am able to create successful connection with MongoDB database. However whenever trying to run job I am getting below error:

Starting job Test_MongoDBConnection at 14:27 26/04/2018.

java.lang.NoClassDefFoundError: Integer
 at java.lang.Class.getDeclaredMethods0(Native Method)
 at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
 at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
 at java.lang.Class.getMethod0(Class.java:3018)
 at java.lang.Class.getMethod(Class.java:1784)
 at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:544)
 at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:526)
Caused by: java.lang.ClassNotFoundException: Integer
 at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
 at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
 ... 7 more
Error: A JNI error has occurred, please check your installation and try again
Job Test_MongoDBConnection ended at 14:27 26/04/2018. [exit code=1]

 

Please help me in resolving this issue.

Thanks in Advance!!

 

My Configurations are as below:

Java Installation: jdk1.8.0_102 and jre1.8.0_161

OS:Windows 7 (64 bit)

My environment variables configuration are as below:

JAVA_HOME: C:\Program Files\Java\jdk1.8.0_102\bin

JDK_HOME: C:\Program Files\Java\jdk1.8.0_102\bin

Path: C:\Program Files\Java\jdk1.8.0_102\bin (At first place in Path variables)

 

I have checked Window->Preferences->Java->Installed JREs

Capture.JPG

 

1 ACCEPTED SOLUTION

Accepted Solutions
Moderator

Re: java.lang.NoClassDefFoundError: Integer (TOS_BD 6.5.1)

Hello,

Are you using oracle jdk 1.8? Did you install Java 9 also in your computer? Could you please re-install your studio TOS_BD 6.5.1 to see if it works well?

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.
8 REPLIES
Twelve Stars

Re: java.lang.NoClassDefFoundError: Integer (TOS_BD 6.5.1)

Four Stars

Re: java.lang.NoClassDefFoundError: Integer (TOS_BD 6.5.1)

Hi Manohar,

Yes, I did.
I already take care of all perquisites like Java 8(jdk1.8.0_102) in place, Environments variables al place, still facing issue.

Sample Job with only tMessageBox component able to run successfully.

Thanks,
Sheetal
Four Stars

Re: java.lang.NoClassDefFoundError: Integer (TOS_BD 6.5.1)

Hi,
Can anybody suggest me solution? I am still facing an issue.

Thanks,
Sheetal
Moderator

Re: java.lang.NoClassDefFoundError: Integer (TOS_BD 6.5.1)

Hello,

Are you using oracle jdk 1.8? Did you install Java 9 also in your computer? Could you please re-install your studio TOS_BD 6.5.1 to see if it works well?

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.
Six Stars

Re: java.lang.NoClassDefFoundError: Integer (TOS_BD 6.5.1)

Hi Sheetal,

 

I have faced the same issue and resolved this by upgrading the jre, jdk to latest versions.

 

Thanks

Ashok

Moderator

Re: java.lang.NoClassDefFoundError: Integer (TOS_BD 6.5.1)

Hello,

Please refer to online document about:TalendHelpCenter:Compatible Java Environments.

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.
Four Stars

Re: java.lang.NoClassDefFoundError: Integer (TOS_BD 6.5.1)

Hi Sabrina,

 

Thanks for help! I am using JDK 1.8 and I have not installed Java 9.

However I tried to re-install studio TOS_BD 6.5.1 and my issue resolved.

 

Thanks,

Sheetal

Moderator

Re: java.lang.NoClassDefFoundError: Integer (TOS_BD 6.5.1)

Hello,

Great this issue has been fixed. Thanks for your feedback.

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.