[Soot-list] Newbie question: Getting a handle on Jimple via Java

Willem Bester wbester at cs.sun.ac.za
Thu Feb 21 09:41:26 EST 2008


Hi Eric,

Thanks for the reply. Unfortunately, this is not what I have in mind. I
don't intend to use Soot as a stand-alone tool. I need to get a handle on
the Jimple representation from within a Java program. So, is there some way
I can call Soot (from a Java program) and have it return a reference to the
Jimple representation of a .class file?

Thanks again.

Willem

On Thu, Feb 21, 2008 at 4:27 PM, Eric Bodden <eric.bodden at mail.mcgill.ca>
wrote:

> Hi, Willem.
>
> you mean you just want to produce .jimple files from .class files?
> That's super easy!
>
> Just do something like this:
>
> java -cp sootclasses.jar soot.Main -f J MyClass
>
> This will read MyClass.class from the current directory and produce
> MyClass.jimple in the directory "sootOutput". All the command line
> options are documented here:
>
> http://www.sable.mcgill.ca/soot/tutorial/usage/index.html
>
> Eric
>

-- 
Willem Bester
Stellenbosch, South Africa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.CS.McGill.CA/pipermail/soot-list/attachments/20080221/7128160f/attachment.htm


More information about the Soot-list mailing list