JavaErlang pre-compiled packages

Pre-compiled versions of the JavaErlang library can be downloaded from this page.

Packages

Installation instructions

The easiest way of using the JavaErlang library is by installing it as a normal Erlang library. First unpack the contents of the library:

unzip -x java_erlang-1-0_e14b04_j16.zip
Then the JavaErlang library should be added to the rest of the Erlang libraries. To do this start Erlang in the directory where the contents of the zip file was unpacked, and call the function java_erlang_install:install/0:
> cd java_erlang_version_1.0
> erl

Erlang R14B03 (erts-5.8.4) [source] [smp:2:2] [rq:2] [async-threads:0] [hipe] [kernel-poll:false]

Eshell V5.8.4  (abort with ^G)
1> java_erlang_install:install().
...

You will probably have to run erlang with super-user privileges (under Unix/Linux) or administrator privileges (Windows) for the installation to succeed. After restarting Erlang, you can verify the status of the JavaErlang installation by typing:

> java_erlang_version:version().
in the Erlang shell.

If you do not want to install JavaErlang among the normal Erlang libraries you can unpack the contents of the zip file anywhere. Then explicitly specify the path to the ebin directory when starting Erlang, and specify the location of the JavaErlang.jar file when a new Java node is created:

> erl -sname JavaErlang -pa java_erlang-1.0/ebin

Erlang R14B03 (erts-5.8.4) [source] [smp:2:2] [rq:2] [async-threads:0] [hipe] [kernel-poll:false]

Eshell V5.8.4  (abort with ^G)
1> {ok,JavaNode} = java:start_node([{add_to_java_classpath,["java_erlang-1.0/priv/JavaErlang.jar"]}]).
...

Source code available

For the development of JavaErlang we are using GitHub (git://github.com/fredlund/JavaErlang.git).