[Soot-list] couldn't load a class created earlier

ASHISH MISHRA ashish123.mishragkp at gmail.com
Thu Oct 10 17:27:40 EDT 2013


Hi All,

I am doing something like this ,

I create a class say A in the internalTransform of a SceneTransform and
write it to a class file in my root directory.(The file gets written well
and good).

Then I reset the Scene via Soot.G.reset().

Then I run the same analysis on another input class say class B and I wish
to modify A again , but I couldn't load A. and get the exception

Exception in thread "main" java.lang.RuntimeException: couldn't find class:
StubMain (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 callgraphandroid.MainClass.inlineMainInClass(MainClass.java:572)
at callgraphandroid.MainClass.main(MainClass.java:135)


I think I understand the soot-class path property fairly well, i have set
my -cp option to "." and my output-dir option also to "." . I can find the
file StubMain there in "."(root of project) but soot couldnt . Please help
me or give some suggestions


-- 
Regards,
Ashish Mishra
Graduate Student,
Computer Science and Automation Department,IISc
Cell : +91-9611194714
Mailto : ashishmishra at csa.iisc.ernet.in
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.cs.mcgill.ca/pipermail/soot-list/attachments/20131011/b18d2f52/attachment.html 


More information about the Soot-list mailing list