HI<div><br></div><div><br><br></div><div class="gmail_quote"><div dir="auto" class="gmail_attr">On Monday, December 30, 2019 at 9:19:51 PM UTC+5:30 Shabnam Tavari wrote:<br/></div><blockquote class="gmail_quote" style="margin: 0 0 0 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">




<div dir="ltr" style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<p>hello, I am new to soot. is it possible to use jar file in soot? also, for feeding jar file to soot extract code is correct?<br>
</p>
<div>final String apppath = "c:\\Users\\SHTAV3\\Desktop\\test.jar";</div>
<div><span style="white-space:pre"></span>soot.G.reset();</div>
<div><span style="white-space:pre"></span>Options.v().set_process_dir(Collections.singletonList(apppath));</div>
<div><span style="white-space:pre"></span>Options.v().set_allow_phantom_refs(true);</div>
<div><span style="white-space:pre"></span>Options.v().set_prepend_classpath(true);</div>
<div><span style="white-space:pre"></span>Options.v().set_validate(true);</div>
<div><span style="white-space:pre"></span>Options.v().set_whole_program(true);</div>
<div><span style="white-space:pre"></span>Options.v().set_app(true);</div>
<div><span style="white-space:pre"></span>Options.v().set_src_prec(Options.src_prec_class);</div>
<div><span style="white-space:pre"></span>Scene.v().loadNecessaryClasses();</div>
<div><span style="white-space:pre"></span>SootClass appclass = Scene.v().loadClassAndSupport("com.eproject.microservices.testcase.Application");</div>
<div><span style="white-space:pre"></span>appclass.setApplicationClass();</div>
<div><span style="white-space:pre"></span>PackManager.v().runPacks();​<br>
</div>
<div>cheers<br>
</div>
<p><br>
</p>
</div>

</blockquote></div>