When I run the following command from the prompt I get the error below for version 3.6.1 and 3.6.0. whereas when I run the same command for 3.5.3 , it gives the response that command not passed.
However when I run the liquibase shell script it works fine. I even tried adding the jars to the classpath it still gives the same error. Below are the errors and the steps that I had followed.
Any advice ?
- devbox@:~/liquibase/3.6.1> java -jar liquibase.jar
Exception in thread "main" java.lang.NoClassDefFoundError: ch.qos.logback.core.f ilter.Filter
at java.lang.J9VMInternals.verifyImpl(Native Method)
at java.lang.J9VMInternals.verify(J9VMInternals.java:94)
at java.lang.J9VMInternals.prepare(J9VMInternals.java:514)
at java.lang.Class.getMethod(Class.java:1116)
at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:507)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:499)
Caused by: java.lang.ClassNotFoundException: ch.qos.logback.core.filter.Filter
at java.net.URLClassLoader.findClass(URLClassLoader.java:600)
at java.lang.ClassLoader.loadClassHelper(ClassLoader.java:777)
at java.lang.ClassLoader.loadClass(ClassLoader.java:750)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:326)
at java.lang.ClassLoader.loadClass(ClassLoader.java:731)
devbox@:~/liquibase/3.6.1> liquibase
.:/export/home/devbox/liquibase/3.6.1/liquibase.jar:/export/home/devbox/liquibase/3.6.1/lib/:/export/home/devbox/liquibase/3.6.1/lib/logback-c lassic-1.2.3.jar:/export/home/devbox/liquibase/3.6.1/lib/logback-core-1.2.3.jar:/export/home/devbox/liquibase/3.6.1/lib/ojdbc6.jar:/export/hom e/devbox/liquibase/3.6.1/lib/slf4j-api-1.7.25.jar:/export/home/devbox/liquibase/3.6.1/lib/snakeyaml-1.18.jar
Starting Liquibase at Wed, 23 May 2018 04:30:07 BST (version 3.6.1 built at 2018-04-11 08:41:04)
Errors:
No command was passed.- devbox@:~/liquibase/3.6.1> export CP=".:/export/home/devbox/liquibase/3.6.1/liquibase.jar:/export/home/devbox/liquibase/3.6.1/li b/:/export/home/devbox/liquibase/3.6.1/lib/logback-classic-1.2.3.jar:/export/home/devbox/liquibase/3.6.1/lib/logback-core-1.2.3.jar:/export/ho me/devbox/liquibase/3.6.1/lib/ojdbc6.jar:/export/home/devbox/liquibase/3.6.1/lib/slf4j-api-1.7.25.jar:/export/home/devbox/liquibase/3.6.1/lib/ snakeyaml-1.18.jar"
devbox@:~/liquibase/3.6.1> echo $CP
.:/export/home/devbox/liquibase/3.6.1/liquibase.jar:/export/home/devbox/liquibase/3.6.1/lib/:/export/home/devbox/liquibase/3.6.1/lib/logback-c lassic-1.2.3.jar:/export/home/devbox/liquibase/3.6.1/lib/logback-core-1.2.3.jar:/export/home/devbox/liquibase/3.6.1/lib/ojdbc6.jar:/export/hom e/devbox/liquibase/3.6.1/lib/slf4j-api-1.7.25.jar:/export/home/devbox/liquibase/3.6.1/lib/snakeyaml-1.18.jar
devbox@:~/liquibase/3.6.1> java -cp $CP -jar liquibase.jar
Exception in thread "main" java.lang.NoClassDefFoundError: ch.qos.logback.core.filter.Filter
at java.lang.J9VMInternals.verifyImpl(Native Method)
at java.lang.J9VMInternals.verify(J9VMInternals.java:94)
at java.lang.J9VMInternals.prepare(J9VMInternals.java:514)
at java.lang.Class.getMethod(Class.java:1116)
at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:507)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:499)
Caused by: java.lang.ClassNotFoundException: ch.qos.logback.core.filter.Filter
at java.net.URLClassLoader.findClass(URLClassLoader.java:600)
at java.lang.ClassLoader.loadClassHelper(ClassLoader.java:777)
at java.lang.ClassLoader.loadClass(ClassLoader.java:750)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:326)
at java.lang.ClassLoader.loadClass(ClassLoader.java:731)
... 6 more