From: Christophe Gaubert <christophe-gaubert@wanadoo.fr>
To: caml-list@inria.fr
Subject: [Caml-list] CamlJava
Date: Wed, 14 Jul 2004 21:23:10 +0200 [thread overview]
Message-ID: <40F5881E.6080905@wanadoo.fr> (raw)
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
reply other threads:[~2004-07-14 19:22 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=40F5881E.6080905@wanadoo.fr \
--to=christophe-gaubert@wanadoo.fr \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox