Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
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 
`/home/christophe/MASTER_CCI/stage/logiciels/camljava/camljava-0.2/test'
ocamlc -ccopt -g -o jnitest -I +camljava jni.cma jnitest.ml
./jnitest
Fatal error: exception Jni.Exception(_)
make[1]: *** [all] Erreur 2
make[1]: Leaving directory 
`/home/christophe/MASTER_CCI/stage/logiciels/camljava/camljava-0.2/test'
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 \
         -Wl,-rpath,$(JDKHOME)/jre/lib/i386/server
[the last line is from me. I have two libjvm.so :
[root@localhost camljava-0.2]# locate libjvm | grep jdk
/usr/lib/jdk-1.4.2_04/jre/lib/i386/client/libjvm.so
/usr/lib/jdk-1.4.2_04/jre/lib/i386/server/libjvm.so ]

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
3.07+2

Thanks for your help.

Christophe Gaubert

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners