<div dir="ltr"><div>Hello,<br></div>There are some examples on how to do that in Soot survivor&#39;s guide.<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On 22 September 2016 at 15:10, hesam ghafouri <span dir="ltr">&lt;<a href="mailto:hsmghfr@yahoo.com" target="_blank">hsmghfr@yahoo.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="color:#000;background-color:#fff;font-family:bookman old style,new york,times,serif;font-size:13px"><div>Hello all,</div><div><div><br></div><div dir="ltr">It is very urgent. I searched a lot to find out how to load a java class to analyze using eclipse but I really couldn&#39;t find any solution. I want to do some static analyze on a java file (/Desktop/sampleFolder/sample.<wbr>java). I think I need to add this file (or its path) into my soot-class path, how can I do that in eclipse??? I know how to do it in command line. <br></div><div dir="ltr">What should I add in eclipse arguments?? Please help me if some one knows about that, its very urgent. Thank you in advance <br></div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr">Here is my code: (the only thing I want to know is how to load the sample class, I know the rest analysis)<br></div><div dir="ltr"><br></div>    public static void main(String[] args) {<br>        // TODO Auto-generated method stub<br>        <br>        Options.v().set_keep_line_<wbr>number(true);<br><br>        Options.v().set_whole_program(<wbr>true);<br><br>        Options.v().set_allow_phantom_<wbr>refs(true);<br>        <br>        Options.v().set_src_prec(<wbr>Options.src_prec_java);<br>        <br>        Options.v().set_output_format(<wbr>Options.output_format_jimple);<br><br>        Options.v().setPhaseOption(&quot;<wbr>cg.cha&quot;, &quot;on&quot;);<br>        <br><div dir="ltr">        SootClass sootClass = Scene.v().loadClassAndSupport(<wbr>&quot;sample&quot;);  //I copied the sample.java file in project src directory<br></div>        sootClass.setApplicationClass(<wbr>);<br><br>        for(SootMethod method : sootClass.getMethods())<br>        {<br>                //analyze codes<br>        }<br>        <br>        soot.Main.main(args);        <br><div dir="ltr">    }</div></div></div></div><br>______________________________<wbr>_________________<br>
Soot-list mailing list<br>
<a href="mailto:Soot-list@CS.McGill.CA">Soot-list@CS.McGill.CA</a><br>
<a href="https://mailman.CS.McGill.CA/mailman/listinfo/soot-list" rel="noreferrer" target="_blank">https://mailman.CS.McGill.CA/<wbr>mailman/listinfo/soot-list</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Denis<br></div></div>
</div>