<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> </DIV>
<DIV>public class Test </DIV>
<DIV>{</DIV>
<DIV> public static void main(String[] args)</DIV>
<DIV> {</DIV>
<DIV> String newargs[] = {</DIV>
<DIV> "-w",</DIV>
<DIV> "-include-all",</DIV>
<DIV> "-cp","C:\\Program Files
(x86)\\Java\\jre1.8.0_31",</DIV>
<DIV> "-d", "c:\\Temp",</DIV>
<DIV> "-process-dir","C:\\Program
Files (x86)\\Java\\jre1.8.0_31\\lib\\rt.jar",</DIV>
<DIV> "-process-dir","C:\\Program
Files (x86)\\Java\\jre1.8.0_31\\lib\\jce.jar",</DIV>
<DIV> "-process-dir","C:\\Program
Files (x86)\\Java\\jre1.8.0_31\\lib\\jsse.jar"};</DIV>
<DIV>
soot.Main.main(newargs); </DIV>
<DIV> }</DIV>
<DIV>}</DIV>
<DIV><FONT face="Times New Roman"></FONT> </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> </DIV>
<DIV> at
soot.SootMethodRefImpl.resolve(SootMethodRefImpl.java:164)</DIV>
<DIV> at
soot.SootMethodRefImpl.resolve(SootMethodRefImpl.java:109)</DIV>
<DIV> at
soot.jimple.internal.AbstractInvokeExpr.getMethod(AbstractInvokeExpr.java:67)</DIV>
<DIV> at
soot.jimple.validation.InvokeArgumentValidator.validate(InvokeArgumentValidator.java:34)</DIV>
<DIV> at
soot.jimple.JimpleBody.validate(JimpleBody.java:117)</DIV>
<DIV> at
soot.jimple.JimpleBody.validate(JimpleBody.java:102)</DIV>
<DIV> at soot.baf.BafBody.<init>(BafBody.java:63)</DIV>
<DIV> at soot.baf.Baf.newBody(Baf.java:560)</DIV>
<DIV> at
soot.PackManager.convertJimpleBodyToBaf(PackManager.java:976)</DIV>
<DIV> at
soot.PackManager.runBodyPacks(PackManager.java:932)</DIV>
<DIV> at
soot.PackManager.runBodyPacks(PackManager.java:608)</DIV>
<DIV> at
soot.PackManager.runBodyPacks(PackManager.java:507)</DIV>
<DIV> at
soot.PackManager.runPacksNormally(PackManager.java:484)</DIV>
<DIV> at soot.PackManager.runPacks(PackManager.java:391)</DIV>
<DIV> at soot.Main.run(Main.java:244)</DIV>
<DIV> at soot.Main.main(Main.java:152)</DIV>
<DIV> at Test.main(Test.java:22)</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><FONT face="Times New Roman">/Christian G</FONT></DIV>
<DIV><FONT face="Times New Roman"></FONT> </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> </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> </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>
Sect. 4 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> </DIV>
<DIV class=gmail_quote>On Thu, Apr 9, 2015 at 8:56 AM, <SPAN dir=ltr><<A
href="mailto:christian.grosse@comhem.se"
target=_blank>christian.grosse@comhem.se</A>></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> </DIV>
<DIV>I have a couple of question about SOOT and the Java library.</DIV>
<DIV> </DIV>
<DIV>How do I get SOOT to load & parse (so I can get Jimple bodies) for
say the entire java 1.x library. </DIV>
<DIV> </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> </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 & method?</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Example:</DIV>
<DIV> </DIV>
<DIV>public class Main </DIV>
<DIV>{ </DIV>
<DIV>public static void main(String[] args) </DIV>
<DIV>{</DIV>
<DIV> </DIV>
<DIV> //TODO: Hook in with my own awesome transform.</DIV>
<DIV> //TODO: Create a main class ???</DIV>
<DIV> . </DIV>
<DIV> .</DIV>
<DIV> .</DIV>
<DIV> </DIV>
<DIV> //call soot.</DIV>
<DIV> Main.main(args);</DIV>
<DIV>}</DIV>
<DIV>}</DIV>
<DIV> </DIV>
<DIV>Best regards,</DIV>
<DIV>Christian G. </DIV>
<DIV> </DIV>
<DIV> </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> </DIV></DIV></DIV></DIV></DIV></DIV></DIV></BODY></HTML>