<HTML><HEAD></HEAD>
<BODY dir=ltr>
<DIV dir=ltr>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: 'Calibri'; COLOR: #000000">
<DIV>I tried this simple program:</DIV>
<DIV>&nbsp;</DIV>
<DIV>public class Test </DIV>
<DIV>{</DIV>
<DIV>&nbsp;&nbsp;&nbsp; public static void main(String[] args)</DIV>
<DIV>&nbsp;&nbsp;&nbsp; {</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; String newargs[] = {</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "-w",</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "-include-all",</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "-cp","C:\\Program Files 
(x86)\\Java\\jre1.8.0_31",</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "-d", "c:\\Temp",</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "-process-dir","C:\\Program 
Files (x86)\\Java\\jre1.8.0_31\\lib\\rt.jar",</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "-process-dir","C:\\Program 
Files (x86)\\Java\\jre1.8.0_31\\lib\\jce.jar",</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "-process-dir","C:\\Program 
Files (x86)\\Java\\jre1.8.0_31\\lib\\jsse.jar"};</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
soot.Main.main(newargs);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </DIV>
<DIV>&nbsp;&nbsp;&nbsp; }</DIV>
<DIV>}</DIV>
<DIV><FONT face="Times New Roman"></FONT>&nbsp;</DIV>
<DIV><FONT face="Times New Roman">But after a while I get:</FONT></DIV>
<DIV><FONT face="Times New Roman">.</FONT></DIV>
<DIV><FONT face="Times New Roman">.</FONT></DIV>
<DIV><FONT face="Times New Roman">.</FONT></DIV>
<DIV>Transforming java.awt.SecondaryLoop... </DIV>
<DIV>Transforming java.awt.SequencedEvent$2... </DIV>
<DIV>Transforming java.awt.SplashScreen$1... </DIV>
<DIV>Transforming java.awt.SystemColor... </DIV>
<DIV>soot.SootMethodRefImpl$ClassResolutionFailedException: Class 
soot.dummy.InvokeDynamic doesn't have method updateSystemColors([]) : 
sun.awt.AWTAccessor$SystemColorAccessor; failed to resolve in superclasses and 
interfacesLooking in soot.dummy.InvokeDynamic which has methods []</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; at 
soot.SootMethodRefImpl.resolve(SootMethodRefImpl.java:164)</DIV>
<DIV>&nbsp;&nbsp;&nbsp; at 
soot.SootMethodRefImpl.resolve(SootMethodRefImpl.java:109)</DIV>
<DIV>&nbsp;&nbsp;&nbsp; at 
soot.jimple.internal.AbstractInvokeExpr.getMethod(AbstractInvokeExpr.java:67)</DIV>
<DIV>&nbsp;&nbsp;&nbsp; at 
soot.jimple.validation.InvokeArgumentValidator.validate(InvokeArgumentValidator.java:34)</DIV>
<DIV>&nbsp;&nbsp;&nbsp; at 
soot.jimple.JimpleBody.validate(JimpleBody.java:117)</DIV>
<DIV>&nbsp;&nbsp;&nbsp; at 
soot.jimple.JimpleBody.validate(JimpleBody.java:102)</DIV>
<DIV>&nbsp;&nbsp;&nbsp; at soot.baf.BafBody.&lt;init&gt;(BafBody.java:63)</DIV>
<DIV>&nbsp;&nbsp;&nbsp; at soot.baf.Baf.newBody(Baf.java:560)</DIV>
<DIV>&nbsp;&nbsp;&nbsp; at 
soot.PackManager.convertJimpleBodyToBaf(PackManager.java:976)</DIV>
<DIV>&nbsp;&nbsp;&nbsp; at 
soot.PackManager.runBodyPacks(PackManager.java:932)</DIV>
<DIV>&nbsp;&nbsp;&nbsp; at 
soot.PackManager.runBodyPacks(PackManager.java:608)</DIV>
<DIV>&nbsp;&nbsp;&nbsp; at 
soot.PackManager.runBodyPacks(PackManager.java:507)</DIV>
<DIV>&nbsp;&nbsp;&nbsp; at 
soot.PackManager.runPacksNormally(PackManager.java:484)</DIV>
<DIV>&nbsp;&nbsp;&nbsp; at soot.PackManager.runPacks(PackManager.java:391)</DIV>
<DIV>&nbsp;&nbsp;&nbsp; at soot.Main.run(Main.java:244)</DIV>
<DIV>&nbsp;&nbsp;&nbsp; at soot.Main.main(Main.java:152)</DIV>
<DIV>&nbsp;&nbsp;&nbsp; at Test.main(Test.java:22)</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face="Times New Roman">/Christian G</FONT></DIV>
<DIV><FONT face="Times New Roman"></FONT>&nbsp;</DIV>
<DIV 
style='FONT-SIZE: small; TEXT-DECORATION: none; FONT-FAMILY: "Calibri"; FONT-WEIGHT: normal; COLOR: #000000; FONT-STYLE: normal; DISPLAY: inline'>
<DIV style="FONT: 10pt tahoma">
<DIV>&nbsp;</DIV>
<DIV style="BACKGROUND: #f5f5f5">
<DIV style="font-color: black"><B>From:</B> <A title=zell08v@gmail.com 
href="mailto:zell08v@gmail.com">Zhoulai</A> </DIV>
<DIV><B>Sent:</B> Thursday, April 09, 2015 6:10 PM</DIV>
<DIV><B>To:</B> <A title=christian.grosse@comhem.se 
href="mailto:christian.grosse@comhem.se">christian.grosse@comhem.se</A> </DIV>
<DIV><B>Cc:</B> <A title=soot-list@cs.mcgill.ca 
href="mailto:soot-list@cs.mcgill.ca">SOOT mailing list</A> </DIV>
<DIV><B>Subject:</B> Re: [Soot-list] Use SOOT to analyse Java 
library.</DIV></DIV></DIV>
<DIV>&nbsp;</DIV></DIV>
<DIV 
style='FONT-SIZE: small; TEXT-DECORATION: none; FONT-FAMILY: "Calibri"; FONT-WEIGHT: normal; COLOR: #000000; FONT-STYLE: normal; DISPLAY: inline'>
<DIV dir=ltr>
<DIV>Hi, <BR><BR>The right way to do these things can be found at 
<BR><BR></DIV><B>Soot Survivor's Guide</B> p16-21<SPAN 
style='FONT-SIZE: 10pt; FONT-FAMILY: "CMBX10"'>,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
Sect. 4&nbsp; Soot as a stand-alone tool <BR><BR></SPAN>Cheers,<BR clear=all>
<DIV>
<DIV class=gmail_extra>
<DIV>
<DIV class=gmail_signature>Zhoulai</DIV></DIV>
<DIV>&nbsp;</DIV>
<DIV class=gmail_quote>On Thu, Apr 9, 2015 at 8:56 AM, <SPAN dir=ltr>&lt;<A 
href="mailto:christian.grosse@comhem.se" 
target=_blank>christian.grosse@comhem.se</A>&gt;</SPAN> wrote:<BR>
<BLOCKQUOTE class=gmail_quote 
style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
  <DIV dir=ltr>
  <DIV dir=ltr>
  <DIV style="FONT-SIZE: 12pt; FONT-FAMILY: 'Calibri'; COLOR: #000000">
  <DIV>Hello!</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>I have a couple of question about SOOT and the Java library.</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>How do I get SOOT to load &amp; parse (so I can get Jimple bodies) for 
  say the entire java 1.x library. </DIV>
  <DIV>&nbsp;</DIV>
  <DIV>Do I have to supply SOOT with the classes (or source code) as arguments 
  in the call to Main.main(args) (see code below)? </DIV>
  <DIV>&nbsp;</DIV>
  <DIV>Do I have to create a main class to get it to work? Or can SOOT analyze 
  all classes I provide as arguments to Main.main(args) call without a main 
  class &amp; method?</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>Example:</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>public class Main </DIV>
  <DIV>{ </DIV>
  <DIV>public static void main(String[] args) </DIV>
  <DIV>{</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>&nbsp; //TODO: Hook in with my own awesome transform.</DIV>
  <DIV>&nbsp; //TODO: Create a main class ???</DIV>
  <DIV>&nbsp; . </DIV>
  <DIV>&nbsp; .</DIV>
  <DIV>&nbsp; .</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>&nbsp; //call soot.</DIV>
  <DIV>&nbsp; Main.main(args);</DIV>
  <DIV>}</DIV>
  <DIV>}</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>Best regards,</DIV>
  <DIV>Christian G. </DIV>
  <DIV>&nbsp;</DIV>
  <DIV>&nbsp;</DIV></DIV></DIV></DIV><BR>_______________________________________________<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" 
  target=_blank>https://mailman.CS.McGill.CA/mailman/listinfo/soot-list</A><BR><BR></BLOCKQUOTE></DIV>
<DIV>&nbsp;</DIV></DIV></DIV></DIV></DIV></DIV></DIV></BODY></HTML>