Re: [abc-users] problem running abc extensions

From: Eric Bodden <eric.bodden@mail.mcgill.ca>
Date: Tue Jun 19 2007 - 20:33:49 BST

When you execute java with the "-jar" option, your CLASSPATH is
completely ignored. Try this, please:

java -cp lib/abc-complete.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/classes.jar
abc.main.Main -ext abc.eaj

Hope that helps,
Eric

On 19/06/07, Hossein Mohtasham <hsadat@gmail.com> wrote:
>
> Hi,
>
> I'm having some trouble running abc extensions which seems to be caused by
> "java.lang.RuntimeException: couldn't find class: java.lang.Object (is your
> soot-class-path set properly?)" . I found it in FAQ on abc website too and
> followed the hint and added the classes.jar to the CLASSPATH, but it made no
> difference:
>
> When I run abc in the following way (without any extensions: java -jar
> lib/abc-complete.jar), it prints out the normal introduction/help notes.
> However, when I try to load any extension, I get the following error:
>
> csa093:~/development/eclipse/abc-1.2.1 sadat$ java -jar
> lib/abc-complete.jar -ext abc.eaj
>
> Exception in thread "main"
> polyglot.util.InternalCompilerError: unhandled exception
> during compilation
> at abc.main.Main.run(Main.java:660)
> at abc.main.Main.main(Main.java:210)
> Caused by: java.lang.RuntimeException: couldn't find class: java.lang.Object
> (is your soot-class-path set properly?)
> at
> soot.SootResolver.bringToHierarchy(SootResolver.java:139)
> at
> soot.SootResolver.bringToSignatures(SootResolver.java:172)
> at
> soot.SootResolver.processResolveWorklist(SootResolver.java:104)
> at soot.SootResolver.resolveClass(SootResolver.java:89)
> at soot.Scene.tryLoadClass(Scene.java:304)
> at soot.Scene.loadBasicClasses(Scene.java:854)
> at abc.main.Main.initSoot(Main.java:748)
> at abc.main.Main.run(Main.java:523)
> ... 1 more
>
>
> The following's been added to the CLASSPATH:
> /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/classes.jar
>
> and I'm using Java 1.5 on a Mac. (I have compiled abc based on the given
> instruction on the website.)
>
> Any help is appreciated.
>
> --Hossein

-- 
Eric Bodden
Sable Research Group
McGill University, Montréal, Canada
Received on Tue Jun 19 20:33:53 2007

This archive was generated by hypermail 2.1.8 : Wed Jun 20 2007 - 00:00:10 BST