On Mon, Nov 23, 2009 at 04:55:37PM +0100, Stefano Zacchiroli wrote: > 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. About this, here is a patch for the build system which makes CamlJava build against both last Sun's JDK 6 (closed source) and last Open JDK. It mainly account for libjvm.so having been moved around and some upstream lib/ directory reorganization. > 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: This, unfortunately, is still standing :-( Cheers. PS I hope I'm not bothering with list + author's Cc, AFAIK there is no BTS for CamlJava, so this is my best attempt for both being sure the author gets the patch and that the patch is public for consumptions by others -- 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