[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Javacaml ???



On Thu, Apr 05, 2001 at 04:42:13PM +0200, Luc MAZARDO wrote:
> > Hello everyone, ...
> > 
> > Has anyone any experience with javacaml ? 
> > 
> > Do you know if it is supposed to work with ocaml 3.01, or something such,
> > would it be nice to package it ?
> 
> I've tried to compile it without success.
> Here is the error message.
> 
> lmazardo@beepbeep:~/local/src/JavaCaml$ make
> find . -name "*.java" | xargs javac -O 
> ./ocaml/Code.java:477: Integer literal out of range.  
> Decimal int literals must be in the range -2147483648 to 2147483647.
>             return (int) (k - 4294967296); // 2 ^ 32
>                               ^
> Note: ./ocaml/Exec.java uses or overrides a deprecated API.  
> Recompile with "-deprecation" for details.
> 1 error, 1 warning
> make: *** [java] Error 123

mmm, ...

Builds fine on my box, what is your installation ?

do you have the jdk1.1, jdk1.1-dev, and ocaml 3.01 installed, what
architecture are you building ?

i guess (as me before) you have jdk1.3.0 installed, ins't it ?

for myself, i encounter problems when trying to build the counter.ml example :

luther@lambda:~/public_html/java$ make
ocamlc -I /home/luther/javacaml/javacaml/lib -use_runtime
/home/luther/javacaml/javacaml/runtime-wrapper/javacamlrun -o counter
counter.ml
File "counter.ml", line 5, characters 8-72:
Warning: this pattern-matching is not exhaustive.
Here is an example of a value that is not matched:
[| _ |]
Error while linking /usr/lib/ocaml/stdlib.cma(Pervasives):
The external function `float_of_bytes' is not available
make: *** [counter] Erreur 2

Friendly,

Sven Luther



Reply to: