Re: [abc-users] problem : "Bad class file" producing .class file from the .ppg file

From: Khalid Al-Jasser <>
Date: Mon Jul 31 2006 - 23:37:59 BST

thanks Eric for your reply.
this is the configuration I use:
Abc version 1.1.1
Java version "1.4.2_05"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_05-b04)
Java HotSpot(TM) Client VM (build 1.4.2_05-b04, mixed mode)

every thing seems fine in this configuration as I was able to compile some
abc programs and run them without any problems.
I will give the abc 1.2 a try and see if the problem still exist!!
Eric: sorry for the late reply,, I was ill in the past few days :-(
best regards,
Khalid Aljasser
The University of Melbourne

----- Original Message -----
From: "Eric Bodden" <>
To: <>
Sent: Wednesday, July 26, 2006 11:04 PM
Subject: RE: [abc-users] problem : "Bad class file" producing .class file
from the .ppg file


First of all, this error seems strange to me because it is definetely not
what we are seeing here. It might have to do with an unusual classpath setup
an hence different versions of different abc components being mixed up. What
version of abc do you use? What does your classpath look like? Why are you
not using our Ant build script (which should help avoid such path problems)?

Hope that helps,

Eric Bodden
Sable Research Group
McGill University, Montréal, Canada
-----Original Message-----
From: Majordomo list server on behalf of Khalid Al-Jasser
Sent: Tue 7/25/2006 23:14
Subject: [abc-users] problem : "Bad class file" producing .class file from 
the .ppg file
when I parse the grammar file i.e. .ppg file every thing goes ok
>>java ppg.PPG -o Grm.class eaj.ppg                              -> ok
but when I compile my extension, it gives this error "Bad class file"
>>javac *.java
> cannot access abc.eaj.parse.Grm
> bad class file: ...\abc-complete\abc\eaj\parse\Grm.class illegal start of
> class file
> Please remove or make sure it appears in the correct subdirectory of the
> classpath.
>        Grm grm = new Grm(lexer, ts, nf, eq);
please note that this error happens even if I don't do any modification to
the .ppg file
Khalid A. Al-Jasser
The University of Melbourne
Received on Mon Jul 31 23:39:34 2006

This archive was generated by hypermail 2.1.8 : Mon Jul 31 2006 - 23:50:07 BST