From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id q29FrLnW012401 for ; Fri, 9 Mar 2012 16:53:21 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AkADANUmWk/PLfmvlGdsb2JhbABDFoUfnjiQSH0iAQEBAQkLCQkUBiGCCgEBAQQSERE6BRIEAgEIEQQBAQECAgkPCwMCAgIdJgEBCAgBAQQBEggKEIdoC58DAYoHkhyBL44VM2MEjR+bKg X-IronPort-AV: E=Sophos;i="4.73,558,1325458800"; d="scan'208";a="135248744" Received: from parmail04.sgcib.com ([207.45.249.175]) by mail4-smtp-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-CAMELLIA256-SHA; 09 Mar 2012 16:53:15 +0100 X-IronPort-AV: E=Sophos;i="4.73,558,1325458800"; d="scan'208";a="92160846" X-ExtLoop1: 1 From: CHAAR Rabih To: Sebastien Ferre , caml-list Date: Fri, 9 Mar 2012 16:53:10 +0100 Thread-Topic: [Caml-list] ocaml-java + lablgtk2 Thread-Index: Acz9/ktv+oVi+g7ZT96AvJFxidfszAADk97g Message-ID: References: <4F58BB1B.5020101@irisa.fr> <1331215956.2826.283.camel@thinkpad> <4F5A0F0D.7000201@irisa.fr> In-Reply-To: <4F5A0F0D.7000201@irisa.fr> Accept-Language: en-US, fr-FR Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US, fr-FR Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by walapai.inria.fr id q29FrLnW012401 X-Validation-by: rabih.chaar@lyxor.com Subject: RE: [Caml-list] ocaml-java + lablgtk2 It still works for java 1.6 (windows) Sincerely -----Original Message----- From: Sebastien Ferre [mailto:Sebastien.Ferre@irisa.fr] Sent: Friday,March 09,2012 3:09 PM To: caml-list Subject: Re: [Caml-list] ocaml-java + lablgtk2 Hi, On 03/08/2012 03:12 PM, Gerd Stolpmann wrote: > 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. This looks promising, and adequate to my needs. However, the last version dates back to 2004, and is for java-1.4. Is there any chance it stills works ? Has anybody used it recently ? Sébastien -- 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 ************************************************************************* This message and any attachments (the "message") are confidential, intended solely for the addressee(s), and may contain legally privileged information. Any unauthorised use or dissemination is prohibited. E-mails are susceptible to alteration. Neither SOCIETE GENERALE nor any of its subsidiaries or affiliates shall be liable for the message if altered, changed or falsified. ************ Ce message et toutes les pieces jointes (ci-apres le "message") sont confidentiels et susceptibles de contenir des informations couvertes par le secret professionnel. Ce message est etabli a l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisee est interdite. Tout message electronique est susceptible d'alteration. La SOCIETE GENERALE et ses filiales declinent toute responsabilite au titre de ce message s'il a ete altere, deforme ou falsifie. *************************************************************************