One Star

[resolved] Getting Unsupported major.minor version 52.0 Error

Hi,
I am getting the below error when tried to run the code present in the jar file.
Exception in thread "main" java.lang.UnsupportedClassVersionError: com/microsoft/sqlserver/jdbc/SQLServerDriver : Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
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)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.springframework.jdbc.datasource.DriverManagerDataSource.setDriverClassName(DriverManagerDataSource.java:127)
at com.valuelabs.talend.utils.DatabaseUtil.getDataSource(DatabaseUtil.java:104)
disconnected
disconnected
at com.valuelabs.talend.utils.DatabaseUtil.performTableComparison(DatabaseUtil.java:199)
at com.valuelabs.talend.jdbc.dao.OracleDAOJDBCTemplateImpl.performTableComparison(OracleDAOJDBCTemplateImpl.java:19)
at com.valuelabs.talend.service.impl.TalendServiceImpl.performTableComparison(TalendServiceImpl.java:65)
at com.valuelabs.talend.main.TalendMain.tableCompare(TalendMain.java:38)
at routines.TestAutomate.Compare(TestAutomate.java:37)
at firstproject.newjar_0_1.Newjar.tJava_2Process(Newjar.java:1779)
at firstproject.newjar_0_1.Newjar.tFileInputExcel_1Process(Newjar.java:1615)
at firstproject.newjar_0_1.Newjar.runJobInTOS(Newjar.java:2118)
at firstproject.newjar_0_1.Newjar.main(Newjar.java:1893)
Job Newjar ended at 12:42 08/12/2015.
I have added the jar to routine and everything is working fine expect the error.
Thanks,
Prudhvi Raju
  
1 ACCEPTED SOLUTION

Accepted Solutions
Employee

Re: [resolved] Getting Unsupported major.minor version 52.0 Error

you need to run with Java 8
Thomas Steinborn
VP Product Management
4 REPLIES
Employee

Re: [resolved] Getting Unsupported major.minor version 52.0 Error

you need to run with Java 8
Thomas Steinborn
VP Product Management
One Star

Re: [resolved] Getting Unsupported major.minor version 52.0 Error

Its working with Java 8 Thank you Smiley Happy
One Star

Re: [resolved] Getting Unsupported major.minor version 52.0 Error

Its working with Java 8 Thank you Smiley Happy

thank you.Its working with Java 8 Thank you 
One Star

Re: [resolved] Getting Unsupported major.minor version 52.0 Error

Hi while loading data from sql server to hdfs cloudera 5.9.0 getting error like
Error: CLI_CLIENT : Unsupported major.minor version 52.0
In preferences I am also using jdk 1.8, can you please help me.
Thanks & Regards,
Sandeep