Link to home
Start Free TrialLog in
Avatar of Vince Mabary
Vince MabaryFlag for United States of America

asked on

What is the best way to troubleshoot & resolve a "major.minor version" error while trying to run Liquibase?

I am attempting to set up Liquibase 3.6.1 on a solaris VM.
My JRE is 1.6.0_151-b10.
My Liquibase.properties file is configured as follows:
driver:oracle.jdbc.OracleDriver  
classpath:/export/home/oracle/Liquibase/lib/OJDBC-Full/ojdbc6.jar  
url:jdbc:oracle:thin:@db:port/instance  
username:uname  
password:pword  

Open in new window

When calling "./Liquibase --version" (for example), I get an error.
Exception in thread "main" java.lang.UnsupportedClassVersionError: Liquibase/integration/commandline/Main : Unsupported major.minor version 51.0
I have looked around for another post relating to a similar issue with java version/Liquibase issue. The closest I have found was relating to the "api" not being compatible with the version of java installed (version or release or update).

Also posted on Stack Exchange
ASKER CERTIFIED SOLUTION
Avatar of Radek Baranowski
Radek Baranowski
Flag of Poland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Vince Mabary

ASKER

I can't update to Java 7 at this time, but rolling back to Liquibase 3.5.4 get's me functional!  Thanks!
I have a home VM where I am running 3.6.1 on Java 8, but my work system is currently stuck at 1.6.  Thank you Radek Baranowski for your help!
Happy to help. good luck.