[Soot-list] Question about Traensformation

Bernhard Berger berber at tzi.de
Mon May 13 05:45:11 EDT 2013


Hi Zeinab,

as far as I see it's a problem with your classpath. One of the first steps of soot is to load all classes reachable from the main class. In your case soot fails to find the class called t1. This code is executed before the Scene- and BodyTransformers are executed. Please check your classpath settings.

Regards,
Bernhard

Am 11.05.2013 um 16:32 schrieb Zeinab Lashkaripour <lashkaripour at yahoo.com>:

> Hi every one,
> 
> I am trying to use Soot in order to perform some transformations.
> I have tried the code in [1] and it works fine. After that I wanted to test my own transformations but I get the exception as below:
> 
> Soot started on Sun May 12 18:52:29 IRDT 2013
> Exception in thread "main" java.lang.RuntimeException: couldn't find class: t1 (is your soot-class-path set properly?)
>     at soot.SootResolver.bringToHierarchy(SootResolver.java:205)
>     at soot.SootResolver.bringToSignatures(SootResolver.java:239)
>     at soot.SootResolver.processResolveWorklist(SootResolver.java:154)
>     at soot.SootResolver.resolveClass(SootResolver.java:124)
>     at soot.Scene.loadClass(Scene.java:448)
>     at soot.Scene.loadClassAndSupport(Scene.java:433)
>     at soot.Scene.loadNecessaryClass(Scene.java:1053)
>     at soot.Scene.loadNecessaryClasses(Scene.java:1067)
>     at soot.Main.run(Main.java:167)
>     at soot.Main.main(Main.java:141)
>     at MyMain.main(MyMain.java:134)
> 
> This exception if I'm not mistaken is due to not setting the classpath correctly but I'm sure about the classpath because I've used it in my analysis and also the code in [1]. I wanted to know if this exception can occur due to some problems in my transformation code or not? 
> The command I use is: args = new String[] {"-pp", "-cp", ".", "-f", "jimple", "--app", "myclass"};
> 
> 
> [1]: On the Soot menagerie – fundamental Soot objects
> _______________________________________________
> Soot-list mailing list
> Soot-list at sable.mcgill.ca
> http://mailman.cs.mcgill.ca/mailman/listinfo/soot-list

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.cs.mcgill.ca/pipermail/soot-list/attachments/20130513/909548f8/attachment.html 


More information about the Soot-list mailing list