From: "Till Crueger" <crueger@informatik.uni-bonn.de>
To: caml-list@yquem.inria.fr
Subject: Problem with OCamljava
Date: Thu, 06 Mar 2008 12:25:11 +0100 [thread overview]
Message-ID: <op.t7ldz9j0tayt6l@reitoei.dyndns.info> (raw)
Hi,
I have a Problem compiling with OCamljava. I first tried compiling
everything at once, giving all sources directly to ocamljava.jar, but I
only got the error:
"error in apply: java.lang.reflect.InvocationTargetException"
Then I tried compiling the files each on its own to see where the error
came from. Some of the files gave me the same error as above, some did
not. The most simple of the files producing this error was this one:
type ident =
IdentVar of string
| IdentPtr of int
;;
let get_ptr =
function
IdentVar _ -> failwith "Uninitialized Variable"
| IdentPtr p -> p
;;
type primitive =
Inc
| Dec
| Put
| Get
| Print
| Zero
| Moveto of ident
;;
type expression =
ExpSequence of expression list
| ExpPrim of primitive
| ExpLoop of (ident * expression)
| ExpDecl
;;
I don't really see what I am doing wrong here, so I hope one of you can
shed some light on this. All works fine when using ocamlc/ocamlopt for
compilation.
Thanks,
Till
P.s. I am using the following JVM:
till@ReiToei:> java -version
java version "1.6.0_04"
Java(TM) SE Runtime Environment (build 1.6.0_04-b12)
Java HotSpot(TM) Client VM (build 10.0-b19, mixed mode)
till@ReiToei:> exit
--
"If everybody minded their own business," the Duchess said in a hoarse
growl, "the world would go round a deal faster than it does."
--Lewis Caroll (Alice in Wonderland)
next reply other threads:[~2008-03-06 11:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-06 11:25 Till Crueger [this message]
2008-03-07 15:51 ` [Caml-list] " forum
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=op.t7ldz9j0tayt6l@reitoei.dyndns.info \
--to=crueger@informatik.uni-bonn.de \
--cc=caml-list@yquem.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