Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] CamlJava
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-07-14 (19:22)
From: Christophe Gaubert <christophe-gaubert@w...>
Subject: [Caml-list] CamlJava
Bonjour la liste

I'm trying to use CamlJava, the interface of Xavier Leroy, but I have 
some problem during the compilation. The two first steps, make and make 
install, seems to work. But then :

[root@localhost camljava-0.2]# make tst
cd test; make
make[1]: Entering directory 
ocamlc -ccopt -g -o jnitest -I +camljava jni.cma
Fatal error: exception Jni.Exception(_)
make[1]: *** [all] Erreur 2
make[1]: Leaving directory 
make: *** [tst] Erreur 2

To resolve a previous error (libjvm not found), I have modified the 
Makefile.config :
JNILIBOPTS=-L$(JDKHOME)/jre/lib/i386/ \
         -Wl,-rpath,$(JDKHOME)/jre/lib/i386/ \
         -Wl,-rpath,$(JDKHOME)/jre/lib/i386/classic \
         -Wl,-rpath,$(JDKHOME)/jre/lib/i386/native_threads \
[the last line is from me. I have two :
[root@localhost camljava-0.2]# locate libjvm | grep jdk
/usr/lib/jdk-1.4.2_04/jre/lib/i386/server/ ]

I use camljava 0.2 and :
[root@localhost camljava-0.2]# java -version
java version "1.4.2_04"
[root@localhost camljava-0.2]# ocamlc -version

Thanks for your help.

Christophe Gaubert

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: