-
Notifications
You must be signed in to change notification settings - Fork 19
/
INSTALL
56 lines (37 loc) · 1.43 KB
/
INSTALL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
JavaErlang requires rebar3 (http://www.rebar3.org) for building and
testing. See http://www.rebar3.org/v3.0/docs/getting-started for
getting started with rebar3.
To compile, execute the following command:
```
$ rebar3 compile
```
To test, execute the following command:
```
$ rebar3 eunit -v
```
If the eunit tests timeout, try re-running the test to see if the
timeout repeats.
To generate Markdown docs, execute the following command:
```
$ env ERL_LIBS=$PWD/_build/default/lib/edown rebar3 edoc
```
===============================================
Installation as a normal Erlang library:
===============================================
As an alternative to including the path to the JavaErlang scripts in the
PATH variable, and adding the path to generated JavaErlang.jar file in
the call to java:start_node/1, one can install JavaErlang as a normal Erlang
library. This method will likely work much better for Windows
installations of JavaErlang as well.
Steps:
1. Compile JavaErlang as above, and then
make release
2. Install JavaErlang as a library:
cd release/java_erlang_version*
erl
1> java_erlang_install:install().
For the last step to work, it may be necessary to start Erlang (erl)
with super-user rights (under Unix) or administrator rights (Windows).
More information regarding how to install JavaErlang as a library,
including from a pre-compiled JavaErlang distribution, can be found in
the file bininst/INSTALLATION.