I am getting this error when I try to connect my java application to Apache Derby using hibernate.
Caused by: java.lang.UnsupportedClassVersionError: org/apache/derby/jdbc/EmbeddedDriver has been compiled by a more recent version of the Java Runtime (class file version 53.0), this version of the Java Runtime only recognizes class file versions up to 52.0
I have read everywhere that it could be because of the missing jars, but i have even added the below jars in the lib folder:
derby-10.15.2.0.jar
derbyclient-10.15.2.0.jar
derbynet-10.15.2.0.jar
derbyshared-10.15.2.0.jar
derbytools-10.15.2.0.jar
Below is my datasource connection variables:
database.url=jdbc:derby://opt/derby/sampleDerbyDB;create=true
database.driver=org.apache.derby.jdbc.ClientDriver (Also tried using EmbeddedDriver but same error)
hibernate.dialect=org.hibernate.dialect.DerbyDialect
Could you please tell me what is it that i am doing wrong? I want to keep using the same jre/java versions and wouldnt like to upgrade.