Version française
Home     About     Download     Resources     Contact us    
Browse thread
CamlJava w/ recent OCaml (3.11.1) and Sun's JVM (OpenJDK)
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Stefano Zacchiroli <zack@u...>
Subject: CamlJava w/ recent OCaml (3.11.1) and Sun's JVM (OpenJDK)
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