* [Caml-list] CamlJava
@ 2004-07-14 19:23 Christophe Gaubert
0 siblings, 0 replies; only message in thread
From: Christophe Gaubert @ 2004-07-14 19:23 UTC (permalink / raw)
To: caml-list
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-07-14 19:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-14 19:23 [Caml-list] CamlJava Christophe Gaubert
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox