From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id q28ECYLq022560 for ; Thu, 8 Mar 2012 15:12:38 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AocEABy+WE/U436rk2dsb2JhbABCFoMAgiyvaSIBAQEBBwsLCRQDJIILAQUjVhALGgImAgJXBhMJiAUHrHSKToEvjimBFgSNR41jjRc X-IronPort-AV: E=Sophos;i="4.73,552,1325458800"; d="scan'208";a="148252217" Received: from moutng.kundenserver.de ([212.227.126.171]) by mail1-smtp-roc.national.inria.fr with ESMTP; 08 Mar 2012 15:12:38 +0100 Received: from office1.lan.sumadev.de (dslb-084-059-064-196.pools.arcor-ip.net [84.59.64.196]) by mrelayeu.kundenserver.de (node=mreu0) with ESMTP (Nemesis) id 0LhiWz-1SjKYX3waf-00mshI; Thu, 08 Mar 2012 15:12:38 +0100 Received: from [192.168.5.106] (dslb-084-059-064-196.pools.arcor-ip.net [84.59.64.196]) by office1.lan.sumadev.de (Postfix) with ESMTPSA id 984CFC00CF; Thu, 8 Mar 2012 15:12:36 +0100 (CET) From: Gerd Stolpmann To: Sebastien Ferre Cc: caml-list In-Reply-To: <4F58BB1B.5020101@irisa.fr> References: <4F58BB1B.5020101@irisa.fr> Content-Type: text/plain; charset="UTF-8" Date: Thu, 08 Mar 2012 15:12:36 +0100 Message-ID: <1331215956.2826.283.camel@thinkpad> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 X-Provags-ID: V02:K0:G311+XZNNorXqwZ9yJG2gvANWEBY77ijf/JHxu6wAK0 hazNlrVcbN26BmKAcw6/H4CHnjEp9T1v5L6aHTxEZ7MEvZLUPZ 5tG9GIqPsoVFgdF3HGH0UVAQlF3lT/ovsAPWYgiPM0BivnqARq dHkgLwyKNFu8z7IpvthNWqAKt9TUIzPU2TPeshLJQxcKwpjFDA M9NYlg8nuKoqmBQC9j5Va3nnqTuHqczigJhhDLfhw2XeLcde27 VxuT9b/hPVF4kf48bxKCGM+Ds+QBKPHjUwvlfZDMe76ynKkrGj lJY9th9C1VtVkhbh9QeyIM4taU+eblV5Z4Gko0Iau2KFpM+zI4 axW2NU4NvfNJlsSRVBwJB088hI9ah/B9K8KGCs0Ul Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by walapai.inria.fr id q28ECYLq022560 Subject: Re: [Caml-list] ocaml-java + lablgtk2 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 gerd@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. ------------------------------------------------------------