Re: [abc-users] Re: compiler error when compiling berkeley DB

From: Thomas Pawlitzki <>
Date: Wed, 12 Mar 2008 08:10:46 +0100

Hey Pavel,

> > I am not so firm in the usage of soot and polyglot:
> You need the rt.jar on the classpath...

Now I was able to run soot on the berkeley-sources.
And i receive the same error as when i run abc on berkeley 2.1.30.

 [java] Missing return statement.
 [java] compilation failed: Could not compile

So it seems as if soot works not correct at this point.

Also the compilation of Berkeley 2.0.90 run in the same
NullPointerException abc runs into. So again it seems as if soot is
the cause of the error.

I checked the soot homepage and noticed that there is a newer Version
of soot as it is included in abc (abc = 2.2.3, soot-latest = 2.2.4)
Perhaps a change to the latest version will fix some errors. (But
perhaps this switch is not so simple).

The same applies to polyglot. In abc the version 1.3.0 is included.
The latest 1.x.x version is 1.3.5. But there is also 2.3.0 available.
(For this version also a Java5 extension is available)

Is it possible to update to a newer version of soot and/or polyglot with ease?

> You can then use this frontend by running "java abc.main.Main -ext abc.ja",
> that is, it is simply an extension that is used like any other. Of course,
> the relevant classes/ directories (or jars) need to be on your classpath for
> this to work -- you'll need abc-complete.jar and abc-ja/classes (or
> abc-ja.jar if you run 'ant jar').

Ok, now i got it.

I build the abc-ja.jar successfuly.

But when i run abc with the extension abc.ja i receive the following error:

[java] The import abc.ja.parse.JavaParser cannot be resolved
[java] Terminals cannot be resolved
[java] Terminals cannot be resolved
..... (many of these lines) .....
[java] Terminals cannot be resolved
[java] Terminals cannot be resolved
[java] at abc.ja.AbcExtension.<init>(
[java] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
[java] at sun.reflect.NativeConstructorAccessorImpl.newInstance(
[java] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
[java] at java.lang.reflect.Constructor.newInstance(
[java] at java.lang.Class.newInstance0(
[java] at java.lang.Class.newInstance(
[java] at abc.main.Main.loadAbcExtension(
[java] at abc.main.Main.parseArgs(
[java] at abc.main.Main.<init>(
[java] at abc.main.Main.main(

Did I forget something?
I looked into the abc-ja.jar and I found the indicated class
abc.ja.parse.JavaParser in the jar.

Received on Wed Mar 12 2008 - 07:10:50 GMT

This archive was generated by hypermail 2.2.0 : Wed Mar 12 2008 - 10:10:10 GMT