Hi,

An alternative, if you want to do as follows:
- Compile Java program to an executable (not jar file)
- Call this executable and get the return values from it

So you can think about Unix module in OCaml, you can use the standard I/O to realize a communication channel between your OCaml code and the executable Java.
https://ocaml.github.io/ocamlunix/ocamlunix.html

Hope that helps,

Best,

---
Chan Ngo
INRIA,
(+33)02 99 84 72 84
chan.ngo@inria.fr
http://people.rennes.inria.fr/Chan.Ngo


On Dec 14, 2015, at 5:40 PM, Soichi Sumi <s-sumi@ist.osaka-u.ac.jp> wrote:

I want to invoke Java programs and use their result
from an OCaml program in my research.

I have tried OCaml-Java to realize the integration
and succeeded to execute some example.However,
it cannot invoke objects defined by me, as far as
I read OCaml-Java document. I think it only realize
seamless integration of Java standard library and OCaml.

Is there anyway to use Java Object which defined by me
or to invoke jar file and use the result?

If you know another way to use the result produced by
Java programs, I want to know the way too.

Any help appreciated.

--Soichi Sumi
--OCaml-Java HP : www.ocamljava.org

=========================================
Soichi Sumi
Graduate School of Information Science and Technology
Osaka University
1-5, Yamadaoka, Suita, Osaka, Japan
=========================================