# Getting Discourse running on JRuby

**URL:** <https://meta.discourse.org/t/getting-discourse-running-on-jruby/81273>\
**Category:** Development\
**Created:** [February 23, 2018, 12:14am UTC](https://meta.discourse.org/t/getting-discourse-running-on-jruby/81273 "2018-02-23T00:14:59Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![headius](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/headius/32/120277_2.png) [@headius](https://meta.discourse.org/u/headius)\
**Post date:** [February 23, 2018, 3:01am UTC](https://meta.discourse.org/t/getting-discourse-running-on-jruby/81273/3 "2018-02-23T03:01:37Z")

</div>

Here’s the diff I have at the moment. This is not an exhaustive list of extensions with no JRuby support but it’s most of them.

> <https://gist.github.com/headius/99f7a177b67d635d4783e7f7b164a3c9>

Some replacements I know of:

- fast\_xor has been superceded by xorcist, which has JRuby support.
- pg has a JRuby equivalent in pg\_jruby. It lags behind pg a lot (lack of resources).
- oj may have JRuby support soon; Tom Enebo has a partial port.
- cppjieba\_rb might be extended to support JRuby using the jieba-analysis Java library. I have started a dialog with the author here: [JRuby support using jieba-analysis library for Java · Issue #1 · erickguan/cppjieba\_rb · GitHub](https://github.com/fantasticfears/cppjieba_rb/issues/1)
- fast\_blank (transitive dependency of onebox) was trivial to port to JRuby. My PR is here: [JRuby support by headius · Pull Request #21 · SamSaffron/fast\_blank · GitHub](https://github.com/SamSaffron/fast_blank/pull/21)
- Presumably unicorn can just be replaced with puma. Both are in the Gemfile.

Other exts will have to be discussed.

---

_[View the full topic](https://meta.discourse.org/t/getting-discourse-running-on-jruby/81273)._
