<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none"><!-- p { margin-top: 0px; margin-bottom: 0px; }--></style>
</head>
<body 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>
</body>
</html>