From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 3685A7FD06 for ; Mon, 14 Dec 2015 18:26:05 +0100 (CET) IronPort-PHdr: 9a23:JiDdWhynVxGihunXCy+O+j09IxM/srCxBDY+r6Qd0e4XIJqq85mqBkHD//Il1AaPBtWFraocw8Pt8IneGkU4qa6bt34DdJEeHzQksu4x2zIaPcieFEfgJ+TrZSFpVO5LVVti4m3peRMNQJW2WVTerzWI4CIIHV2nbEwudrqzQtaapv/0/t7x0qWbWx9Piju5bOE6BzSNhiKViPMrh5B/IL060BrDrygAUe1XwWR1OQDbxE6ktY/jtKJkpi9ZvvZk889bTe2udK09SflcDS86G2Ez/szi8xfZG1ih/HwZB04WmxwAJQfCpEXxXp739C31sbAngHKyMsj/TLRyUjOnufQ4ACT0gTsKYmZquFrcjdZ92fpW Authentication-Results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=chan.ngo2203@gmail.com; spf=Pass smtp.mailfrom=chan.ngo2203@gmail.com; spf=None smtp.helo=postmaster@mail-wm0-f43.google.com Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of chan.ngo2203@gmail.com) identity=pra; client-ip=74.125.82.43; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="chan.ngo2203@gmail.com"; x-sender="chan.ngo2203@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail2-smtp-roc.national.inria.fr: domain of chan.ngo2203@gmail.com designates 74.125.82.43 as permitted sender) identity=mailfrom; client-ip=74.125.82.43; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="chan.ngo2203@gmail.com"; x-sender="chan.ngo2203@gmail.com"; 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@mail-wm0-f43.google.com) identity=helo; client-ip=74.125.82.43; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="chan.ngo2203@gmail.com"; x-sender="postmaster@mail-wm0-f43.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0DMAADH+m5WlCtSfUpehA1usnSKTYFjFwEJhW0CgSs5EwEBAQEBAQEBEAEBAQEHCwsJHzCCLYIHAQEBAwESLgEIEx4DAQsGBQsNJwcjEQEFAQsRBhMJGYd3AQMKCA2dUYExPjGNMoJ5h2cKGScNVoNaAQEBBwEBAQEBAQEBAQEBEgEFDohXgm6EKhEBTII1TRyBGgWTA4NsB4U1iA+BW0mGcTOPWIInNoEXERIDgkEjgV5xAQGDQoFCAQEB X-IPAS-Result: A0DMAADH+m5WlCtSfUpehA1usnSKTYFjFwEJhW0CgSs5EwEBAQEBAQEBEAEBAQEHCwsJHzCCLYIHAQEBAwESLgEIEx4DAQsGBQsNJwcjEQEFAQsRBhMJGYd3AQMKCA2dUYExPjGNMoJ5h2cKGScNVoNaAQEBBwEBAQEBAQEBAQEBEgEFDohXgm6EKhEBTII1TRyBGgWTA4NsB4U1iA+BW0mGcTOPWIInNoEXERIDgkEjgV5xAQGDQoFCAQEB X-IronPort-AV: E=Sophos;i="5.20,428,1444687200"; d="scan'208,217";a="192036293" Received: from mail-wm0-f43.google.com ([74.125.82.43]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/AES128-GCM-SHA256; 14 Dec 2015 18:26:04 +0100 Received: by mail-wm0-f43.google.com with SMTP id n186so56976225wmn.0 for ; Mon, 14 Dec 2015 09:26:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:message-id:mime-version:subject:date:references :to:in-reply-to; bh=ydUV6TBg9ojOC+jylcLPwR0Y9BjJ6NipUNKLSBu3a0E=; b=hBF3Cv694NEhPcJf1oODR2EEj0PmeoxBOVL0ila851ULIcBmESltPxmRi/Otx8TYV4 B1Bxc3/OK6NHnL7G8dTvZxKvpekJS4hP7Y5RJSwuAIBPyynKlz1GvuODVXTkKpnfru4N q701tlYOarhIexGaFiynJ0Qg7wwOBvLIlGGriPkjfGSq/TLuHjCPFszL8LEbZX1xO3Ra LPX3qyzS4xjC4/0qCwc79AvFnLRaaj8PlPeHeenZ9hrmo1MXDKdM+5Wab9Mj2HbvDuT+ eivn9ZZ2L62mOSjk1a/9fkvE1FBqJmOHbqwvS3AsN9/GKIrJPm+ninCIPtNq+5hwWHIo iYbQ== X-Received: by 10.28.18.9 with SMTP id 9mr24594516wms.96.1450113964313; Mon, 14 Dec 2015 09:26:04 -0800 (PST) Received: from cafehanoi.irisa.fr (cafehanoi.irisa.fr. [131.254.11.144]) by smtp.gmail.com with ESMTPSA id q6sm17105305wmd.8.2015.12.14.09.26.02 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 14 Dec 2015 09:26:02 -0800 (PST) From: Chan Ngo Content-Type: multipart/alternative; boundary="Apple-Mail=_7196FAAA-7889-4827-BB42-BAC7E05024D2" Message-Id: <8D722630-1CB1-413B-9F90-1F975FA5B64B@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 9.2 \(3112\)) Date: Mon, 14 Dec 2015 18:25:51 +0100 References: To: caml-list In-Reply-To: X-Mailer: Apple Mail (2.3112) Subject: Re: [Caml-list] Invoking Java programs from an OCaml program --Apple-Mail=_7196FAAA-7889-4827-BB42-BAC7E05024D2 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii 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 t= o realize a communication channel between your OCaml code and the executabl= e 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 wrote: >=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. >=20 > Is there anyway to use Java Object which defined by me > or to invoke jar file and use the result? >=20 > If you know another way to use the result produced by > Java programs, I want to know the way too. >=20 > Any help appreciated. >=20 > --Soichi Sumi > --OCaml-Java HP : www.ocamljava.org >=20 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > Soichi Sumi > Graduate School of Information Science and Technology > Osaka University > 1-5, Yamadaoka, Suita, Osaka, Japan > Email: s-sumi@ist.osaka-u.ac.jp > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --Apple-Mail=_7196FAAA-7889-4827-BB42-BAC7E05024D2 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii Hi,

An alternative, if you want to d= o as follows:
- Compile Java program to an executable = (not jar file)
- Call this executable and get the retu= rn 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 executab= le Java.

Hope that he= lps,

Best,
<= div class=3D"">
---
Chan Ngo
INRIA,
(+33)02 99 84 72 84
<= a href=3D"http://people.rennes.inria.fr/Chan.Ngo" class=3D"">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 pro= grams and use their result
from an OCam= l program in my research.

I have tried OCaml-Java to realize the integration
and succeeded to execute some example.However,
i= t cannot invoke objects defined by me, as far as
I rea= d OCaml-Java document. I think it only realize
seamles= s integration of Java standard library and OCaml.

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

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

Any help appreciated.

<= div class=3D"">--Soichi Sumi
--OCaml-Java HP : www.ocamljava.org

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D
Soichi Sumi
Graduate Schoo= l of Information Science and Technology
Osaka University
1-5, Yamadaoka, Suita, Osaka, Japan<= /div>
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

= --Apple-Mail=_7196FAAA-7889-4827-BB42-BAC7E05024D2--