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

List:       soot-list
Subject:    [Soot-list] Problem with tutorial examples
From:       karkare () gmail ! com (Amey Karkare)
Date:       2005-06-15 12:49:34
Message-ID: dedfc19605061509493336ebc8 () mail ! gmail ! com
[Download RAW message or body]

Hello,
 I have recently installed soot framework. But I am not able to run
the 'create class'
(http://www.sable.mcgill.ca/soot/tutorial/createclass/Main.java) and
'goto instrumenter' (
http://www.sable.mcgill.ca/soot/tutorial/profiler/Main.java) example
files. I am not really sure if i am running these programs in the
correct way.  Errors I am getting are:
-------------------------------------------------
// for createclass
$> javac Main.java
Main.java:96: newStaticFieldRef(soot.SootFieldRef) in
soot.jimple.Jimple cannot be applied to (soot.SootField)
                units.add(Jimple.v().newAssignStmt(tmpRef,
Jimple.v().newStaticFieldRef(
                                                                   ^
Main.java:102: cannot resolve symbol
symbol  : method newVirtualInvokeExpr
(soot.Local,soot.SootMethod,soot.jimple.StringConstant)
location: class soot.jimple.Jimple
               
units.add(Jimple.v().newInvokeStmt(Jimple.v().newVirtualInvokeExpr(tmpRef,
toCall, StringConstant.v("Hello world!"))));
                                                           ^
Main.java:110: cannot resolve symbol
symbol  : method write ()
location: class soot.SootClass
        sClass.write();
              ^
3 errors
---------------------------------------------------
Similar errors are there for other program.

Please guid me how can I fix this peoblem.

Thanks,
Amey Karkare,
CSE Research Scholar,
IIT Bombay.

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

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