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 14:40:40 2004
This archive was generated by hypermail 2.1.8 : Mon Nov 15 2004 - 15:20:03 GMT