RE: [abc-users] polyglot.util.InternalCompilerError

From: Sascha Kuzins <sascha.kuzins@comlab.ox.ac.uk>
Date: Mon Nov 15 2004 - 18:44:26 GMT

I just tried the example using the abc version from our website and the
normal XP command prompt:

C:\abctest>java -cp abc-complete.jar abc.main.Main world\*.java
C:\abctest>java -cp .;abc-runtime.jar world.Parser
Hello World!

It worked fine on my machine.
Cheers,
Sascha

> -----Original Message-----
> From: Majordomo list server
> [mailto:majordomo@comlab.ox.ac.uk] On Behalf Of Prof. Laurie HENDREN
> Sent: Monday, November 15, 2004 5:19 PM
> To: abc-users@comlab.ox.ac.uk
> Subject: RE: [abc-users] polyglot.util.InternalCompilerError
>
>
> Right, I am thinking it is an abc under windows problem (there are
> several subtle points about the / vs \ that have to be
> correct..). We do most
> our work on linux, and those of us who use windows tend to
> either use Eclipse,
> or the cygwin shells, so we might not have covered all cases when the
> command-line args come from a windows command line
> correctly... I don't
> have my windows machine with me today at work to try it, but I have
> pinged some of the Oxford gang to see if they can try it.
>
> Cheers, Laurie
>
> +-------------------------------------------------------------+
> | Laurie Hendren, Professor, School of Computer Science |
> | McGill University |
> | 318 McConnell Engineering Building tel: (514) 398-7391 |
> | 3480 University Street fax: (514) 398-3883 |
> | Montreal, Quebec H3A 2A7 hendren@cs.mcgill.ca |
> | CANADA http://www.sable.mcgill.ca/~hendren |
> +-------------------------------------------------------------+
>
> On Mon, 15 Nov 2004, James Crowley wrote:
>
> > The \ wasn't in the filename - it was instructing abc to look in the
> > subdirectory (package) "environment", and then for all
> files matching
> > "*.java". I was only trying this because -sourceroots . also failed.
> >
> > I'm using the standard windows command line.
> >
> > Cheers,
> >
> > ~ James Crowley
> >
> ---------------------------------------------------------------------
> > Developer Fusion – Programming tutorials & articles
> > Codezone UK – The new UK developer resource
> >
> ---------------------------------------------------------------------
> > Developer Fusion Blogs – Want one too? Just let me know!
> >
> > -----Original Message-----
> > From: Majordomo list server
> [mailto:majordomo@comlab.ox.ac.uk] On Behalf Of
> > Prof. Laurie HENDREN
> > Sent: 15 November 2004 15:53
> > To: abc-users@comlab.ox.ac.uk
> > Subject: RE: [abc-users] polyglot.util.InternalCompilerError
> >
> > Hi James,
> >
> > Are you using Windows and a windows shell? (I notice the \
> in your file
> > name).
> >
> > Laurie
> >
> >
> > +-------------------------------------------------------------+
> > | Laurie Hendren, Professor, School of Computer Science |
> > | McGill University |
> > | 318 McConnell Engineering Building tel: (514) 398-7391 |
> > | 3480 University Street fax: (514) 398-3883 |
> > | Montreal, Quebec H3A 2A7 hendren@cs.mcgill.ca |
> > | CANADA http://www.sable.mcgill.ca/~hendren |
> > +-------------------------------------------------------------+
> >
> > On Mon, 15 Nov 2004, James Crowley wrote:
> >
> > > All the files in "environment" have "package
> environment;" in them.
> > >
> > > ~ James
> > >
> > > -----Original Message-----
> > > From: Majordomo list server
> [mailto:majordomo@comlab.ox.ac.uk] On Behalf
> > Of
> > > Oege de Moor
> > > Sent: 15 November 2004 15:19
> > > To: abc-users@comlab.ox.ac.uk
> > > Subject: Re: [abc-users] polyglot.util.InternalCompilerError
> > >
> > >
> > > >From the "differences" page on aspectbench:
> > >
> > > abc does not support compiling the class foo.Bar from a
> file Bar.java; you
> > > must make sure Bar resides in a directory that matches
> the package name,
> > > so foo/Bar.java (or some deeper path such as a/foo/Bar.java).
> > >
> > > do the .java files in "environment" all have "package
> environment;" in
> > > them?
> > >
> > > On Mon, 15 Nov 2004, James Crowley wrote:
> > >
> > > > Hi,
> > > >
> > > > I’m currently having trouble getting abc to compile my
> java files when I
> > > > start using packages. I was wondering if anyone could help?
> > > >
> > > > abc *.java
> > > >
> > > > works fine. But as soon as I try
> > > >
> > > > abc environment\World.java
> > > > or
> > > > abc –sourceroots .
> > > >
> > > > I get the following:
> > > >
> > > > Exception in thread "main" polyglot.util.InternalCompilerError:
> > unhandled
> > > > exception during compilation
> > > > at abc.main.Main.run(Main.java:666)
> > > > at abc.main.Main.main(Main.java:196)
> > > > Caused by: java.lang.NullPointerException
> > > > at
> >
> polyglot.types.reflect.ClassFileLoader.loadFromFile(ClassFileLoader.j
> > > > ava:188)
> > > > at
> >
> polyglot.types.reflect.ClassFileLoader.loadClass(ClassFileLoader.java
> > > > :106)
> > > > at
> >
> polyglot.types.reflect.ClassPathLoader.loadClass(ClassPathLoader.java
> > > > :62)
> > > > at
> >
> polyglot.types.LoadedClassResolver.loadFile(LoadedClassResolver.java:
> > > > 70)
> > > > at
> >
> polyglot.types.LoadedClassResolver.find(LoadedClassResolver.java:104)
> > > > at
> polyglot.types.CompoundResolver.find(CompoundResolver.java:44)
> > > > at
> polyglot.types.CachingResolver.find(CachingResolver.java:104)
> > > > at
> polyglot.ext.jl.types.TypeSystem_c.forName(TypeSystem_c.java:1278)
> > > > at
> >
> polyglot.ext.jl.types.TypeSystem_c.typeForName(TypeSystem_c.java:1301
> > > > <snip>
> > > >
> > > > If I try adding the package path to the class path, I get
> > > >
> > > > Exception in thread "main" polyglot.util.InternalCompilerError:
> > unhandled
> > > > except
> > > > ion during compilation
> > > > at abc.main.Main.run(Main.java:666)
> > > > at abc.main.Main.main(Main.java:196)
> > > > Caused by: soot.CompilationDeathException: Couldn't
> resolve classpath
> > > entry
> > > > D:\Program
> Files\Development\eclipse\workspace\AntViewer\environment:
> > > > java.io.IOException: The filename, directory name, or
> volume label
> > syntax
> > > is
> > > > incorrect
> > > > at
> soot.SourceLocator.explodeClassPath(SourceLocator.java:331)
> > > > at
> soot.SourceLocator.getClassSource(SourceLocator.java:37)
> > > > at soot.Scene.tryLoadClass(Scene.java:292)
> > > > at soot.Scene.loadBasicClasses(Scene.java:838)
> > > > at abc.main.Main.initSoot(Main.java:740)
> > > > at abc.main.Main.run(Main.java:581)
> > > >
> > > > I’ve got the abc runtime and “.” In my class path, and
> I’m running
> > Windows
> > > > XP… Any ideas?
> > > >
> > > > Many thanks,
> > > >
> > > > ~ James Crowley
> > > >
> ---------------------------------------------------------------------
> > > > Developer Fusion – Programming tutorials & articles
> > > > Codezone UK – The new UK developer resource
> > > >
> ---------------------------------------------------------------------
> > > > Developer Fusion Blogs – Want one too? Just let me know!
> > > >
> > > >
> > > >
>
>
>
Received on Mon Nov 15 19:44:14 2004

This archive was generated by hypermail 2.1.8 : Tue Nov 16 2004 - 12:00:03 GMT