[Soot-list] Problem in transforming Example code

SUMEET SINGH singhsumeet87 at gmail.com
Sun Jan 31 05:35:51 EST 2010


Hi Eric

I am new to Soot framework and for a start is trying around with some of the
given examples. I am working with Soot-2.3.0 and is trying the example
"Using soot to instrument a Class File" as given on:
http://www.sable.mcgill.ca/soot/tutorial/profiler2/index.html. However,
there seems to be a problem in transforming the output code.

Command issued by me:
java -cp
'/home/sumeet/Desktop/polyglotclasses-1.3.5.jar':'/home/sumeet/Desktop/jasminclasses-2.3.0.jar':'/home/sumeet/Desktop/sootclasses-2.3.0.jar':/usr/share/java/libgcj.jar:.
MainDriver TestInvoke

where TestInvoke is the target class to be instrumented and libgcj.jar is
for locating "java.lang.Object" as i am using gcj for java compiling. Result
output is:

Soot started on Sun Jan 31 15:59:42 GMT+05:30 2010
Transforming TestInvoke...
instrumenting method : <TestInvoke: void <clinit>()>
instrumenting method : <TestInvoke: void <init>()>
instrumenting method : <TestInvoke: void main(java.lang.String[])>
instrumenting method : <TestInvoke: void foo()>
instrumenting method : <TestInvoke: void bar()>
Writing to sootOutput/TestInvoke.class
Jasmin:28: Warning - Syntax error.
Jasmin:28: Error - Couldn't repair and continue parse.
Jasmin: Found 2 errors


Can you please tell me what i am missing or doing wrong.

Sincerely,
Sumeet
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.cs.mcgill.ca/pipermail/soot-list/attachments/20100131/56769356/attachment.html 


More information about the Soot-list mailing list