# Liquibase with SQLite

**URL:** https://forum.liquibase.org/t/liquibase-with-sqlite/9474
**Category:** General Discussion
**Created:** [June 10, 2024, 5:10pm UTC](https://forum.liquibase.org/t/liquibase-with-sqlite/9474 "2024-06-10T17:10:04Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![yottabyte](https://avatars.discourse-cdn.com/v4/letter/y/df705f/32.png) [@yottabyte](https://forum.liquibase.org/u/yottabyte)
#### Post date: [June 10, 2024, 5:10pm UTC](https://forum.liquibase.org/t/liquibase-with-sqlite/9474/1 "2024-06-10T17:10:04Z")

</div>

Hello,

I have Liquibase 4.28 installed and I am trying to get it to work with SQLite. I was following this guide: [SQLite - contribute.liquibase.com](https://contribute.liquibase.com/extensions-integrations/directory/database-tutorials/sqlite/) but am running into some issues.

When I run liquibase update-sql when specifying my changelog file, I get:

Unexpected error running Liquibase: Could not initialize class org.sqlite.JDBC

- Caused by: Exception java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory [in thread “main”]

My liquibase.properties file is just:

changeLogFile: \_main-changelog.xml  
url: jdbc:sqlite:test.db

I even tried adding classpath: sqlite-jdbc.jar (copying it from liquibase/internal/lib) but it didn’t change anything.

Really what I want to do is a specify the path to a sqlite db file and run changesets against that. I’m not sure what this example does, if it just creates like a global database for me. Perhaps the global database is the best practice, unsure.

---

<div class="post-metadata">

### Author: ![yottabyte](https://avatars.discourse-cdn.com/v4/letter/y/df705f/32.png) [@yottabyte](https://forum.liquibase.org/u/yottabyte)
#### Post date: [June 10, 2024, 7:17pm UTC](https://forum.liquibase.org/t/liquibase-with-sqlite/9474/2 "2024-06-10T19:17:22Z")

</div>

Turns out this is a known issue, the workaround described here: [Liquibase and SQLite doesn't work with NoClassDefFoundError: org/slf4j/LoggerFactory error · Issue #5706 · liquibase/liquibase · GitHub](https://github.com/liquibase/liquibase/issues/5706#issuecomment-2158949350) worked for me!
