From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id AD2E37EFF4 for ; Tue, 15 Dec 2015 10:06:22 +0100 (CET) IronPort-PHdr: 9a23:t6YP7RORYiAPnJomqGQl6mtUPXoX/o7sNwtQ0KIMzox0KPr8rarrMEGX3/hxlliBBdydsKIazbKO+4nbGkU+or+5+EgYd5JNUxJXwe43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6anHS+4HYoFwnlMkItf6KuStCU15z//tvx0qOQSj0AvCC6b7J2IUf+hiTqne5Sv7FfLL0swADCuHpCdrce72ppIVWOg0S0vZ/or9ZLuh5dsPM59sNGTb6yP+FhFeQZX3waNDUO48zgtRiLdhaK5zNISSANjx9JKwne8Ff9RZ7yu27n8ON2niuCa57YV7cxDH6s6L12TTf42SxBOSRzuDXZjdZtiYpL8RnnqQYpkN2cW52cKPcrJvCVRtgdX2cUG58JDyE= Authentication-Results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=forum@x9c.fr; spf=Pass smtp.mailfrom=forum@x9c.fr; spf=None smtp.helo=postmaster@4.mo2.mail-out.ovh.net Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of forum@x9c.fr) identity=pra; client-ip=87.98.172.75; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="forum@x9c.fr"; x-sender="forum@x9c.fr"; x-conformance=sidf_compatible Received-SPF: Pass (mail2-smtp-roc.national.inria.fr: domain of forum@x9c.fr designates 87.98.172.75 as permitted sender) identity=mailfrom; client-ip=87.98.172.75; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="forum@x9c.fr"; x-sender="forum@x9c.fr"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@4.mo2.mail-out.ovh.net) identity=helo; client-ip=87.98.172.75; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="forum@x9c.fr"; x-sender="postmaster@4.mo2.mail-out.ovh.net"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0CbAAAQ129WnEusYldeDoRrvzWGDQKBMzwQAQEBAQEBAQEQAQEBAQEGDQkJIS6CLYIIAQEDASNWBQsLDgwCJgICVwYTiCcIBKtCkg0BAQEBAQEEAQEBAQEBHYEBhFmDC4FFgSmEWYMeL4EaBZZ6AY8jh22PW4N0OIJSgR8/cYR2AQEB X-IPAS-Result: A0CbAAAQ129WnEusYldeDoRrvzWGDQKBMzwQAQEBAQEBAQEQAQEBAQEGDQkJIS6CLYIIAQEDASNWBQsLDgwCJgICVwYTiCcIBKtCkg0BAQEBAQEEAQEBAQEBHYEBhFmDC4FFgSmEWYMeL4EaBZZ6AY8jh22PW4N0OIJSgR8/cYR2AQEB X-IronPort-AV: E=Sophos;i="5.20,431,1444687200"; d="scan'208";a="192171210" Received: from 4.mo2.mail-out.ovh.net ([87.98.172.75]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/ADH-AES256-GCM-SHA384; 15 Dec 2015 10:06:14 +0100 Received: from mail621.ha.ovh.net (b9.ovh.net [213.186.33.59]) by mo2.mail-out.ovh.net (Postfix) with SMTP id 27FD91000BAE for ; Tue, 15 Dec 2015 10:06:14 +0100 (CET) Received: from localhost (HELO queueout) (127.0.0.1) by localhost with SMTP; 15 Dec 2015 11:06:13 +0200 Received: from incub59-111.enst.fr (HELO ?192.168.0.104?) (forum%x9c.fr@137.194.59.111) by ns0.ovh.net with SMTP; 15 Dec 2015 11:06:11 +0200 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) From: "forum@x9c.fr" In-Reply-To: Date: Tue, 15 Dec 2015 10:06:07 +0100 Cc: Xavier Clerc , caml-list@inria.fr Content-Transfer-Encoding: quoted-printable Message-Id: <511DB10A-2151-402D-99AD-94CCD228EA70@x9c.fr> References: To: Soichi Sumi X-Mailer: Apple Mail (2.2104) X-Ovh-Tracer-Id: 15565284737358758792 X-Ovh-Remote: 137.194.59.111 (incub59-111.enst.fr) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-OVH-SPAMSTATE: OK X-OVH-SPAMSCORE: -100 X-OVH-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeekiedrvdeiucetufdoteggodftvfcurfhrohhfihhlvgemucfqggfjnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeekiedrvdeigdduvdefucetufdoteggodftvfcurfhrohhfihhlvgemucfqggfjnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd Subject: Re: [Caml-list] Invoking Java programs from an OCaml program > Le 14 d=C3=A9c. 2015 =C3=A0 17:40, Soichi Sumi = a =C3=A9crit : >=20 > I want to invoke Java programs and use their result > from an OCaml program in my research. >=20 > 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. You should actually be able to use your own objects as easily as any other Java object. It just happens that some SDK classes can be accessed through the OCaml-Java library. The major point to consider is the classpath. By default, the compiler has only access to the SDK classes, but you can add any directory or jar file thanks to the "-cp" command-line switch. Hope this helps, Xavier Clerc