From: "forum@x9c.fr" <forum@x9c.fr>
To: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] [ANN] OCaml-Java project : beta version
Date: Sun, 2 Mar 2008 11:53:19 +0100 [thread overview]
Message-ID: <A27211BC-6194-4A71-91B2-176C7A1D35CA@x9c.fr> (raw)
In-Reply-To: <666572260803011201x3e63bdc8uf175baac1679217f@mail.gmail.com>
Le 1 mars 08 à 21:01, Adrien a écrit :
>
> Now about ocamljava, ocaml.jar immediately exits with "unable to
> locate ocaml toplevel". I thought it did not need ocaml(.out).
>
> Also, ocamljava.jar has another problem :
> java -jar bin\ocamljava.jar
> Fatal error: exception
> Sys_error("/usr/local/share/camomile/database/general_cat
> egory.mar: java.io.IOException: file does not exist:
> .\usr\local\share\camomile\
> database\general_category.mar")
Well, I have to admit that I made some errors while crafting the
binary package.
I just fixed them and uploaded a new version (check out http://ocamljava.x9c.fr/downloads.html)
.
You should now be able to use the various tools. Here is a short test
session assuming you
have a "source.ml" file (typical content: <<let () = List.iter
print_endline ["hello ..."; "... world"]>>):
Execution of toplevel:
java -jar ocaml.jar
Compilation to OCaml bytecode:
java -jar ocamlc.jar -o bc source.ml
Execution of produced btyecode:
java -jar ocamlrun.jar bc
Compilation to Java jar file:
java -jar ocamljava.jar -standalone -o prog.jar source.ml
Execution of produced jar file:
java -jar prog.jar
However, I noticed a bug with the binary package that does not show up
if you have
the standard OCaml distribution installed on your computer: the
ocamlc.jar/ocamljava.jar
compilers will fail if the current directory contains the by-product
of a previous compilation
(e.g. cmo or cmi files). The temporary workaround is to delete these
files before any
compilation.
I suspect this bug has something to do with the embedded mode (the
ability for the
Java-run programs to look for files inside their jar files rather than
on the local file
system). I will hunt this bug and report to the list when it is fixed.
Sorry for the inconvenience in the meanwhile.
Xavier Clerc
next prev parent reply other threads:[~2008-03-02 10:53 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-01 11:46 forum
2008-03-01 19:03 ` [Caml-list] " Adrien
2008-03-01 20:01 ` Adrien
2008-03-02 10:53 ` forum [this message]
2008-03-07 15:51 ` forum
2008-03-22 18:38 ` Adrien
2008-03-24 21:24 ` forum
2008-03-02 10:46 ` forum
2008-03-02 20:38 ` Florian Weimer
2008-03-01 22:51 ` Richard Jones
2008-03-02 10:52 ` forum
2008-03-02 12:26 ` Richard Jones
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=A27211BC-6194-4A71-91B2-176C7A1D35CA@x9c.fr \
--to=forum@x9c.fr \
--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