# SQLCipher in Java Application!

**URL:** <https://discuss.zetetic.net/t/sqlcipher-in-java-application/2413>\
**Category:** SQLCipher\
**Created:** [October 18, 2017, 1:42pm UTC](https://discuss.zetetic.net/t/sqlcipher-in-java-application/2413 "2017-10-18T13:42:01Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![iu6djr](https://avatars.discourse-cdn.com/v4/letter/i/f0a364/32.png) [@iu6djr](https://discuss.zetetic.net/u/iu6djr)\
**Post date:** [October 18, 2017, 1:42pm UTC](https://discuss.zetetic.net/t/sqlcipher-in-java-application/2413/1 "2017-10-18T13:42:01Z")

</div>

Hi,  
i compiled the sqlcipher in my Linux machine.  
Now, i have to use it in an application i built for my school exam.  
Unfortunatly, in my sqlcipher directory i have only the libraries for C language and not for Java.  
How can i recompiling it for Java? Or transform for Java language?  
Thanks a lot

---

<div class="post-metadata">

**Author:** ![developernotes](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.zetetic.net/developernotes/32/1309_2.png) [@developernotes](https://discuss.zetetic.net/u/developernotes)\
**Post date:** [October 18, 2017, 2:34pm UTC](https://discuss.zetetic.net/t/sqlcipher-in-java-application/2413/2 "2017-10-18T14:34:25Z")

</div>

Hello @iu6djr

[SQLCipher](https://github.com/sqlcipher/sqlcipher) only distributes the source of the core C library, all client library packaging must be performed separately if you are not using the C interface directly. Packaging SQLCipher to be used with a Java application can be a nontrivial process. You might consider starting with the [Xerial JDBC](https://github.com/xerial/sqlite-jdbc) library as a starting point. Feel free to post questions here in the community forums if you run into specific issues.

---

<div class="post-metadata">

**Author:** ![iu6djr](https://avatars.discourse-cdn.com/v4/letter/i/f0a364/32.png) [@iu6djr](https://discuss.zetetic.net/u/iu6djr)\
**Post date:** [October 19, 2017, 10:06am UTC](https://discuss.zetetic.net/t/sqlcipher-in-java-application/2413/3 "2017-10-19T10:06:52Z")

</div>

Ok, thanks a lot…the question is: is it possible compiling this library for java desktop or not? Because if it’s possible, i will study how to do this, but if it isn’t possibile i will change project.  
That’s very important for me and for my exam…

---

<div class="post-metadata">

**Author:** ![sjlombardo](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.zetetic.net/sjlombardo/32/3_2.png) [@sjlombardo](https://discuss.zetetic.net/u/sjlombardo)\
**Post date:** [October 19, 2017, 12:32pm UTC](https://discuss.zetetic.net/t/sqlcipher-in-java-application/2413/4 "2017-10-19T12:32:24Z")

</div>

Hello @iu6djr - Yes, it is technically possible to do (as @developernotes mentioned we sell a product that does exactly this), however it is definitely a complex integration and build scenario.

---

<div class="post-metadata">

**Author:** ![dstl85](https://avatars.discourse-cdn.com/v4/letter/d/7bcc69/32.png) [@dstl85](https://discuss.zetetic.net/u/dstl85)\
**Post date:** [December 20, 2018, 8:04pm UTC](https://discuss.zetetic.net/t/sqlcipher-in-java-application/2413/5 "2018-12-20T20:04:45Z")

</div>

@developernotes @sjlombardo - Sqlcipher’s home / landing page states:

SQLCipher has broad platform support for with [C/C++](https://www.zetetic.net/sqlcipher/sqlcipher-api), Obj-C, QT, [Win32/.NET](https://www.zetetic.net/sqlcipher/sqlcipher-dotnet), **Java** , Python, Ruby, Linux, etc

If SQLCipher doesn’t actually have support for Java, you have a responsibility as an individual and a company to not falsely state Java is supported on SQLCipher’s home page.

---

<div class="post-metadata">

**Author:** ![sjlombardo](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.zetetic.net/sjlombardo/32/3_2.png) [@sjlombardo](https://discuss.zetetic.net/u/sjlombardo)\
**Post date:** [December 21, 2018, 4:09pm UTC](https://discuss.zetetic.net/t/sqlcipher-in-java-application/2413/6 "2018-12-21T16:09:56Z")

</div>

@dstl85 - Just to clarify, as I stated earlier in the thread, SQLCipher does support Java. We sell a product that provides a JDBC driver that works on Windows, Linux, and macOS. However, we don’t make the source code freely available, as it is one of our commercial products.

We will make an attempt to clarify this in the documentation on the site shortly.

In the mean time, if you are interested in Java / JDBC support please feel to contact us at [sales@zetetic.net](mailto:sales@zetetic.net).
