[Soot-list] Trouble Implementing Interprocedural Analysis

Eric Bodden eric.bodden at mail.mcgill.ca
Thu May 3 17:31:42 EDT 2007


On 03/05/07, Armand Navabi <anavabi at purdue.edu> wrote:
> The analysis works fine as long as the argument class does not call a
> library class.  As soon as I put a System.out.println in the class, I
> get the following error:
>
> Exception in thread "main" java.lang.RuntimeException:
> Aborting: can't find classfile sun.misc.Version
>         at soot.Scene.getSootClass(Scene.java:374)
>         at soot.coffi.CFG.generateJimple(CFG.java:4647)

Well, that's no surprise... if you inspect library code the library
has to be on your classpath. So you need something like:

java -cp soot.jar soot.Main -cp .:/path/to/jre/lib/rt.jar <otherArgs>

Eric

--
Eric Bodden
Sable Research Group
McGill University, Montréal, Canada


More information about the Soot-list mailing list