There are three ways to install OCaml-Java:
bindirectory (unpacked from the archive) to the system
./configure.sh -prefix pathwhere
pathshould 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.shscript also accepts an
-ocaml-configure strswitch that can be used to pass the
strstring to the configure script of OCaml. According to the prefix directory, it can be necessary to run
./build.shwith root privileges.
opam remote add id url
opam switch ocamljava-ver
idis any identifier (e.g.
ocamljava -vfrom 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