From dougo@ccs.neu.edu Tue Nov 25 00:31:12 1997 Received: from vega.ccs.neu.edu (vega.ccs.neu.edu [129.10.114.125]) by amber.ccs.neu.edu (8.8.6/8.7.3) with ESMTP id AAA25283; Tue, 25 Nov 1997 00:31:08 -0500 (EST) Received: (dougo@localhost) by vega.ccs.neu.edu (8.8.6/8.6.4) id AAA14000; Tue, 25 Nov 1997 00:31:08 -0500 (EST) Date: Tue, 25 Nov 1997 00:31:08 -0500 (EST) Message-Id: <199711250531.AAA14000@vega.ccs.neu.edu> From: Doug Orleans To: "Roy Oberhauser" Cc: ap-support@ccs.neu.edu, dem@ccs.neu.edu Subject: Re: HP-UX demjava problems In-Reply-To: <9711241753.ZM26314@xsvr3.cup.hp.com> References: <9711241753.ZM26314@xsvr3.cup.hp.com> X-Mailer: VM 6.22 under 19.15p7 XEmacs Lucid X-Face: (4D-osoq?}7M3\EgvbWKo Does demjava 0.6.4 work with JDK1.1.3? Yes, but it appears it does not with JavaCC 0.7pre6. > Java Compiler Compiler Version 0.7pre6 (Parser Generator) > Copyright (c) 1996, 1997 Sun Microsystems Inc. > (type "javacc" with no arguments for help) > Reading from file grammar.jj . . . > File "TokenMgrError.java" does not exist. Will create one. > File "ParseException.java" does not exist. Will create one. [...] > gen/A.java:6: Class ParseError not found in throws. > public static A parse(java.io.InputStream in) throws ParseError > ^ > gen/A.java:7: Exception ParseException must be caught, or it must be declared > in > the throws clause of this method. > { return new Parser(in)._A(); } > ^ As of the pre6 version (which was just released a little while ago, and I hadn't tested demjava with it yet), they renamed ParseError to ParseException, which breaks demjava-0.6.4-generated code. I will fix this, but for now you'll need to use an earlier version of JavaCC, e.g. 0.6 (which is what is installed at Northeastern). > Until I modified the demjava script shown below I got the following SIGSEGV > error: Any segfault error is a bug in the Java virtual machine implementation (or perhaps the JIT compiler, if there is one for HP-UX). I don't use any native methods, so any compliant virtual machine should not core dump. You're on your own with this, sorry. > I modified demjava as follows (why are these paths hardcoded?): (Because I was too lazy to write a real install/config program that would set the paths correctly-- I plan to look into using Jex or something similar, but haven't gotten around to it.) > BTW, there is no src/test to check installation, Yes, that's a doc bug, although I will probably add a simple test. > and the src/selftest gives > this error (after modifying GNUmakefile hardcoded paths as in demjava above): > > [hppddev2:selftest-541]make test > ln -s ../Text.java > Usage: ln [-f] [-i] [-s] f1 f2 > ln [-f] [-i] [-s] f1 ... fn d1 > gmake: *** [Text.java] Error 2 Oops, you'll have to fix the GNUmakefiles in the selftest directories-- I forgot that HP's ln program is broken. Simply change the line ln -s ../$@ to ln -s ../$@ $@ and it should work correctly. However, the selftest is mainly for my own testing; it's not really meant for the user to run-- I just left it in (as well as the source code) for curious hackers. --Doug