There are three ways to install OCaml-Java:
bin
directory (unpacked from the archive)
to the system PATH
../configure.sh -prefix path
where path
should be absolute;./build.sh
(that builds and installs both OCaml and OCaml-Java);./clean.sh
(that deletes all the files produced by the build process).configure.sh
script also accepts an -ocaml-configure str
switch that can be used to pass the str
string to the configure script of OCaml. According to the prefix directory, it can be necessary to run ./build.sh
with root privileges.
opam remote add id url
opam switch ocamljava-ver
id
is any identifier (e.g. ocj
);url
is http://opam.ocamljava.org
;ver
is 2.0-alpha3
.ocamljava -v
from the command-line. It should result in the following output:
The OCaml Java-bytecode compiler, version 4.01.0 OCaml-Java version: 2.0-alpha3 Standard library directory: /ocamljava-2.0-alpha3
AT
ocamljava.org