From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.1.3 Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id 779E0BBCB for ; Thu, 6 Mar 2008 12:25:13 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAAL1jz0eD3AgEn2dsb2JhbACBVo8jAQEBAQEGBAYJCBiaTg X-IronPort-AV: E=Sophos;i="4.25,455,1199660400"; d="scan'208";a="8074874" Received: from postfix.iai.uni-bonn.de ([131.220.8.4]) by mail2-smtp-roc.national.inria.fr with ESMTP; 06 Mar 2008 12:25:13 +0100 X-IAI-Env-From: : [212.201.71.142] Received: from reitoei.dyndns.info (pptp-212-201-71-142.pptp.stw-bonn.de [212.201.71.142]) by postfix.iai.uni-bonn.de (Postfix) with ESMTP id 74A2F5C836 for ; Thu, 6 Mar 2008 12:25:12 +0100 (MET) (envelope-from crueger@informatik.uni-bonn.de) (envelope-to caml-list@yquem.inria.fr) (1) (internal use: ta=1, tu=1, te=1, am=L, au=crueger) Date: Thu, 06 Mar 2008 12:25:11 +0100 To: caml-list@yquem.inria.fr Subject: Problem with OCamljava From: "Till Crueger" Organization: =?iso-8859-15?Q?Universit=E4t_Bonn?= Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-15 MIME-Version: 1.0 Content-Transfer-Encoding: Quoted-Printable Message-ID: User-Agent: Opera Mail/9.25 (Linux) X-Spam: no; 0.00; failwith:01 ocamlc:01 ocamlopt:01 compilation:01 -version:01 runtime:01 hotspot:98 10.0:98 int:01 ident:01 ident:01 expression:02 expression:02 compiling:02 compiling:02 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 =3D IdentVar of string | IdentPtr of int ;; let get_ptr =3D function IdentVar _ -> failwith "Uninitialized Variable" | IdentPtr p -> p ;; type primitive =3D Inc | Dec | Put | Get | Print | Zero | Moveto of ident ;; type expression =3D 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)