[prev in list] [next in list] [prev in thread] [next in thread] 

List:       soot-list
Subject:    [Soot-list] =?gb2312?b?tPC4tDogIGlzIHNvb3QgYWJsZSB0byBhbmFseXpl?=
From:       Ding Sun <xyz031702 () hotmail ! com>
Date:       2011-08-12 15:45:10
Message-ID: SNT121-DS25C0A357335AA871A789EDB3250 () phx ! gbl
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi, Cheng Zhang

      Thanks ! Yes, it works.  :)

Best Regards,

Ding Sun

 

·¢¼þÈË: Cheng Zhang [mailto:cheng.zhang.stap@gmail.com] 
·¢ËÍʱ¼ä: 2011Äê8Ô 12ÈÕ 0:57
ÊÕ¼þÈË: Ding Sun
³­ËÍ: soot-list@sable.mcgill.ca
Ö÷Ìâ: Re: [Soot-list] is soot able to analyze jar files?

 

Hi Ding,

 

Actually I have used Soot to analyze .class files (instead of Java source
code) in most of my projects.

 

If you want to process the .class files in a jar file, then you can use the
-process-dir option, like -process-dir xxx.jar

If some class in the jar file is referenced by the code you are analyzing,
then you can add the jar file

into the Soot classpath by using the -soot-classpath option.

 

Best,

Cheng

On Fri, Aug 12, 2011 at 12:26 AM, Ding Sun <xyz031702@hotmail.com> wrote:

Hi, All

   Previously I only use soot to process files whose source codes are
available. I'm wondering if a java method is from a Jar without any source
codes available, is soot able to analyze that method?  Currently I use the
"whole program" mode , soot will tell me that method is "phantom".

 

Looking forward to your kind advice!

Best Regards,

Ding Sun


_______________________________________________
Soot-list mailing list
Soot-list@sable.mcgill.ca
http://mailman.cs.mcgill.ca/mailman/listinfo/soot-list

 


[Attachment #5 (text/html)]

<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
<html xmlns:v="urn:schemas-microsoft-com:vml" \
xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" \
xmlns="http://www.w3.org/TR/REC-html40"><head><meta name=Generator content="Microsoft \
Word 14 (filtered medium)"><style><!-- /* Font Definitions */
@font-face
	{font-family:SimSun;
	panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
	{font-family:SimSun;
	panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:SimSun;
	panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal-reply;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-family:"Calibri","sans-serif";}
@page WordSection1
	{size:612.0pt 792.0pt;
	margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=ZH-CN link=blue vlink=purple><div \
class=WordSection1><p class=MsoNormal><span lang=EN-US \
style='font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497D'>Hi, Cheng \
Zhang<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US \
style='font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497D'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
Thanks ! Yes, it works.&nbsp; :)<o:p></o:p></span></p><p class=MsoNormal><span \
lang=EN-US style='font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497D'>Best \
Regards,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US \
style='font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497D'>Ding \
Sun<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US \
style='font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p \
class=MsoNormal><b><span style='font-size:10.0pt;font-family:SimSun'>·¢¼þÈË<span \
lang=EN-US>:</span></span></b><span lang=EN-US \
style='font-size:10.0pt;font-family:SimSun'> Cheng Zhang \
[mailto:cheng.zhang.stap@gmail.com] <br></span><b><span \
style='font-size:10.0pt;font-family:SimSun'>·¢ËÍʱ¼ä<span \
lang=EN-US>:</span></span></b><span lang=EN-US \
style='font-size:10.0pt;font-family:SimSun'> 2011</span><span \
style='font-size:10.0pt;font-family:SimSun'>Äê<span lang=EN-US>8</span>Ô <span \
lang=EN-US>12</span>ÈÕ<span lang=EN-US> 0:57<br></span><b>ÊÕ¼þÈË<span \
lang=EN-US>:</span></b><span lang=EN-US> Ding Sun<br></span><b>³­ËÍ<span \
lang=EN-US>:</span></b><span lang=EN-US> \
soot-list@sable.mcgill.ca<br></span><b>Ö÷Ìâ<span lang=EN-US>:</span></b><span \
lang=EN-US> Re: [Soot-list] is soot able to analyze jar \
files?<o:p></o:p></span></span></p><p class=MsoNormal><span \
lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US>Hi \
Ding,<o:p></o:p></span></p><div><p class=MsoNormal><span \
lang=EN-US><o:p>&nbsp;</o:p></span></p></div><div><p class=MsoNormal><span \
lang=EN-US>Actually I have used Soot to analyze .class files (instead of Java source \
code) in most of my projects.<o:p></o:p></span></p></div><div><p \
class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p></div><div><p \
class=MsoNormal><span lang=EN-US>If you want to process the .class files in a jar \
file, then you can use the -process-dir option, like<i> -process-dir \
xxx.jar</i><o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US>If \
some class in the jar file is referenced by the code you are analyzing, then you can \
add the jar file<o:p></o:p></span></p></div><div><p class=MsoNormal><span \
lang=EN-US>into the Soot classpath by using the -soot-classpath \
option.<o:p></o:p></span></p></div><div><p class=MsoNormal><span \
lang=EN-US><o:p>&nbsp;</o:p></span></p></div><div><p class=MsoNormal><span \
lang=EN-US>Best,<o:p></o:p></span></p></div><div><p class=MsoNormal \
style='margin-bottom:12.0pt'><span lang=EN-US>Cheng<o:p></o:p></span></p><div><p \
class=MsoNormal><span lang=EN-US>On Fri, Aug 12, 2011 at 12:26 AM, Ding Sun &lt;<a \
href="mailto:xyz031702@hotmail.com">xyz031702@hotmail.com</a>&gt; \
wrote:<o:p></o:p></span></p><div><div><p class=MsoNormal \
style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US>Hi, \
All<o:p></o:p></span></p><p class=MsoNormal \
style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span \
lang=EN-US>&nbsp;&nbsp; Previously I only use soot to process files whose source \
codes are available. I'm wondering if a java method is from a Jar without any source \
codes available, is soot able to analyze that method?&nbsp; Currently I use the \
&quot;whole program&quot; mode , soot will tell me that method is \
&quot;phantom&quot;.<o:p></o:p></span></p><p class=MsoNormal \
style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span \
lang=EN-US>&nbsp;<o:p></o:p></span></p><p class=MsoNormal \
style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US>Looking \
forward to your kind advice!<o:p></o:p></span></p><p class=MsoNormal \
style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US>Best \
Regards,<o:p></o:p></span></p><p class=MsoNormal \
style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US>Ding \
Sun<o:p></o:p></span></p></div></div><p class=MsoNormal \
style='margin-bottom:12.0pt'><span \
lang=EN-US><br>_______________________________________________<br>Soot-list mailing \
list<br><a href="mailto:Soot-list@sable.mcgill.ca">Soot-list@sable.mcgill.ca</a><br><a \
href="http://mailman.cs.mcgill.ca/mailman/listinfo/soot-list" \
target="_blank">http://mailman.cs.mcgill.ca/mailman/listinfo/soot-list</a><o:p></o:p></span></p></div><p \
class=MsoNormal><span \
lang=EN-US><o:p>&nbsp;</o:p></span></p></div></div></body></html>



_______________________________________________
Soot-list mailing list
Soot-list@sable.mcgill.ca
http://mailman.cs.mcgill.ca/mailman/listinfo/soot-list


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic