Unable to run liquibase: UnsupportedClassVersionError

Hi all,

I’m novice in Java development (actually I’m a .NET one). I wanted to take a look at the liquibase, but I cannot get it to work even for a -version argument.

I’ve downloaded the 2.0.0 version of the liquibase from the SourceForge.
But if I try to use it, no matter what arguments I’m passing to liquibase.bat, I get an Error message:

    java.lang.UnsupportedClassVersionError: liquibase/integration/commandline/Main (Unsupported major.minor version 49.0) at java.lang.ClassLoader.defineClass0(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.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.ClassLoader.loadClassInternal(Unknown Source) Exception in thread "main"

Any help would be appreciated!

Thanks a lot.

What java version are you running?  You need at least java 1.5 for liquibase 2.0.  There is a version of liquibase 1.9 that works with java 1.4, but 2.0 requires 1.5+.

Nathan

Thanks a lot.

I’ve checked the Path and found reference to the old jre added by the oracle client installer.

Now liquibase works.