[Soot-list] Beginner writing own driver

Arnamoy Bhattacharyya arnamoy at ualberta.ca
Fri May 12 13:30:37 EDT 2017


Hi;

I am an absolute beginner to soot.  I was manage to floow the soot
(nightly build) getting started guide to run the soot.Main on a
TestInvoke java file to get the output.

The following call succeeds:

/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.95-2.6.4.0.el7_2.x86_64/bin/java
-cp soot_nightly.jar soot.Main -src-prec java  -cp
.:/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.95-2.6.4.0.el7_2.x86_64/jre/lib/rt.jar
 TestInvoke

Now I am having trouble making a simple function call counting pass/
driver compile and work (following this tutorial
https://www.sable.mcgill.ca/soot/tutorial/profiler2/index.html)

Can anyone please tell me the steps to make my own pass work?

I tried (using java version 1.7):

/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.95-2.6.4.0.el7_2.x86_64/bin/java
-cp soot_nightly.jar soot.Main -src-prec java  -cp
.:/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.95-2.6.4.0.el7_2.x86_64/jre/lib/rt.jar
 MainDriver TestInvoke

But this command fails on  the import soot.*;

error:

/home/arnamoy/java_trend_prof/MainDriver.java:2,8:

  Semantic Error: soot not found

Any help will be greatly appreciated.

Thank you.


-- 
Arnamoy Bhattacharyya
PhD Student
Electrical and Computer Engineering Department
University of Toronto


More information about the Soot-list mailing list