Am Donnerstag, den 08.03.2012, 14:58 +0100 schrieb Sebastien Ferre:
> Hi,
> 
> I am considering developping an OCaml
> application using Lablgtk2 for the GUI,
> and using ocaml-java/Nickel for calling
> a Java library (namely, OWL-API). I am
> working on Linux.
> 
> Has anybody tried this ? I am a bit afraid
> of potential dependency problems...

This cannot work. ocaml-java is running in a JVM, but lablgtk2 is
written for the standard runtime, and assumes standard conventions for
the C bindings it needs.

What you could try to do is to use the standard runtime, and load the
JVM dynamically for running the Java library, and connect both via JNI.
There is a generator for such cross calls by Xavier:

http://gallium.inria.fr/~xleroy/software.html#camljava

I've never used it, though.

Gerd

> 
> ---
> Sébastien
> 

-- 
------------------------------------------------------------
Gerd Stolpmann, Darmstadt, Germany    g...@gerd-stolpmann.de
Creator of GODI and camlcity.org.
Contact details:        http://www.camlcity.org/contact.html
Company homepage:       http://www.gerd-stolpmann.de
*** Searching for new projects! Need consulting for system
*** programming in Ocaml? Gerd Stolpmann can help you.
------------------------------------------------------------



-- 
Caml-list mailing list.  Subscription management and archives:
https://sympa-roc.inria.fr/wws/info/caml-list
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs

Reply via email to