Skip to content

Commit b7a2b08

Browse files
committed
Merge pull request #57 from generall/patch-1
Update README.md
2 parents 1602e99 + c795707 commit b7a2b08

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,26 @@ Then, install iruby and related ports and gems.
9393
$ gem build iruby.gemspec
9494
$ sudo gem install iruby-0.2.7.gem
9595
```
96+
### Installation for jRuby
97+
98+
Since jRuby is fully compatible with Ruby version 2.2, it is possible to use iruby with jRuby.
99+
It can be helpful if you want to use java classes in your iruby notebook.
100+
This will require the following software:
101+
* jRuby version >= 9.0.4.0
102+
* ZeroMQ version >= 4.1.4 (You may have to build it from source.)
103+
* ffi-rzmq gem
104+
* this iruby gem
105+
106+
After installation, make sure that your `env` is set up to jruby.
107+
```shell
108+
$ env ruby -v
109+
```
110+
If you use RVM, it is enough to switch the current version to jruby.
111+
If you have already used iruby with a different version, you need to generate a new kernel:
112+
```shell
113+
$ iruby register --force
114+
```
115+
After that you can use iruby with jRuby in usual way.
96116

97117
### After the installation
98118

0 commit comments

Comments
 (0)