From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id C8492BC37; Mon, 23 Nov 2009 16:55:42 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApoEACI/CktDz4He/2dsb2JhbADWXYQ8BA X-IronPort-AV: E=Sophos;i="4.47,273,1257116400"; d="scan'208";a="37268272" Received: from fettunta.fettunta.org ([67.207.129.222]) by mail2-smtp-roc.national.inria.fr with ESMTP; 23 Nov 2009 16:55:42 +0100 Received: from usha.takhisis.invalid (unknown [10.17.0.10]) by fettunta.fettunta.org (Postfix) with ESMTPS id 8121318481; Mon, 23 Nov 2009 15:55:41 +0000 (UTC) Received: by usha.takhisis.invalid (Postfix, from userid 1000) id B41906E33; Mon, 23 Nov 2009 16:55:37 +0100 (CET) Date: Mon, 23 Nov 2009 16:55:37 +0100 From: Stefano Zacchiroli To: OCaml Mailing List Cc: Xavier Leroy Subject: CamlJava w/ recent OCaml (3.11.1) and Sun's JVM (OpenJDK) Message-ID: <20091123155537.GA10062@usha.takhisis.invalid> Reply-To: caml-lists@inria.fr Mail-Followup-To: OCaml Mailing List , Xavier Leroy MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.5.20 (2009-06-14) X-Spam: no; 0.00; zacchiroli:01 zack:01 camljava:01 ocaml:01 camljava:01 ocaml:01 dirs:01 symlink:01 initializing:01 initializing:01 cheers:01 zacchiroli:01 postdoc:01 zack:01 gymnastic:98 Has anyone successfully built/used CamlJava [1] with recent OCaml and the open sourced Sun's JVM (OpenJDK)? I've tried for a while, but I'm stuck at the basics, i.e. making the example shipped with CamlJava work. First of all there is some needed gymnastic to build: apparently there is no longer _a_ legacy libjvm.so, but several one depending on which JRE you choose (at least: "Cacao" and "headless"). Of course they're in different dirs and I'm not sure about which is the right way (or even criteria) to choose one. After having passed through that (with a dirty symlink to one of the two libjvm.so), the shipped example fails with an exception while initializing the JVM: LOG: [0x00002b9a57f73c80] exception thrown while VM is initializing: LOG: [0x00002b9a57f73c80] NULL: java.lang.Object LOG: [0x00002b9a57f73c80] Aborting... (this is with Cacao, with headless an exception its OCaml, but apparently it is devoid of any inspectable content.) Has any one here a success story to share? Is there a planned future release of CamlJava? Many thanks in advance, Cheers. [1] http://pauillac.inria.fr/~xleroy/software.html#camljava -- Stefano Zacchiroli -o- PhD in Computer Science \ PostDoc @ Univ. Paris 7 zack@{upsilon.cc,pps.jussieu.fr,debian.org} -<>- http://upsilon.cc/zack/ Dietro un grande uomo c'è ..| . |. Et ne m'en veux pas si je te tutoie sempre uno zaino ...........| ..: |.... Je dis tu à tous ceux que j'aime