Quantcast
Channel: Liquibase Forums
Viewing all articles
Browse latest Browse all 2993

Re : Exception in thread "main" java.lang.NoClassDefFoundError:

$
0
0
One way to see would be to edit the liquibase.bat file. The last line in liquibase.bat looks like this:

  1. java -cp "%CP%" %JAVA_OPTS% liquibase.integration.commandline.Main %CMD_LINE_ARGS%
Change that to look like this:

  1. set _cmd=java -cp "%CP%" %JAVA_OPTS% liquibase.integration.commandline.Main %CMD_LINE_ARGS%
  2. echo %_cmd%
  3. %_cmd%
What this does is instead of just creating and executing the java command all at once, it puts the expanded command into a variable, echos that to the screen, and then executes it. Here is what the output looks like on my machine:

C:\Users\Steve\liquibase-3.8.0>liquibase.bat --help
java -cp ".;C:\Users\Steve\liquibase-3.8.0\liquibase.jar;C:\Users\Steve\liquibase-3.8.0\sdk\lib-sdk\liquibase-bundle-3.5.11300.jar;C:\Users\Steve\liquibase-3.8.0\sdk\lib-sdk\liquibase-core-3.5.1160.jar;C:\Users\Steve\liquibase-3.8.0\sdk\lib-sdk\liquibase-ext-api-1.0.17.jar;C:\Users\Steve\liquibase-3.8.0\sdk\lib-sdk\liquibase-pro-mvp-core-3.8.0.jar;C:\Users\Steve\liquibase-3.8.0\lib\jaxb-api-2.2.8.jar;C:\Users\Steve\liquibase-3.8.0\lib\jaxb-core-2.2.8-b01.jar;C:\Users\Steve\liquibase-3.8.0\lib\jaxb-impl-2.2.8-b01.jar;C:\Users\Steve\liquibase-3.8.0\lib\logback-classic-1.0.10.jar;C:\Users\Steve\liquibase-3.8.0\lib\logback-core-1.0.10.jar;C:\Users\Steve\liquibase-3.8.0\lib\slf4j-api-1.7.25.jar;C:\Users\Steve\liquibase-3.8.0\lib\snakeyaml-1.23.jar;C:\Users\Steve\liquibase-3.8.0\lib"  liquibase.integration.commandline.Main --help
Starting Liquibase at Fri, 20 Sep 2019 12:39:25 CDT (version 3.8.0 built at 2019-08-15T20:38:06Z)


Usage: java -jar liquibase.jar [options] [command]

Standard Commands:
 update                         Updates database to current version
 updateSQL                      Writes SQL to update database to current
                                version to STDOUT

Steve Donie
Principal Software Engineer
Datical, Inc. http://www.datical.com/

Viewing all articles
Browse latest Browse all 2993

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>