正确执行SOOT API的3个地址代码

时间:2018-12-09 02:07:25

标签: java api soot

我在运行SOOT API时遇到问题。我正在使用

java -cp soot-2.5.0.jar soot.Main -f jimple test

我遇到以下错误:

Exception in thread "main" java.lang.RuntimeException: Could not load classfile: java.io.ObjectInputStream at 

at soot.coffi.Util.resolveFromClassFile(Util.java:75)
    at soot.CoffiClassSource.resolve(CoffiClassSource.java:39)
    at soot.SootResolver.bringToHierarchy(SootResolver.java:215)
    at soot.SootResolver.processResolveWorklist(SootResolver.java:155)
    at soot.SootResolver.resolveClass(SootResolver.java:124)
    at soot.Scene.tryLoadClass(Scene.java:417)
    at soot.Scene.loadBasicClasses(Scene.java:990)
    at soot.Scene.loadNecessaryClasses(Scene.java:1061)
    at soot.Main.run(Main.java:167)
    at soot.Main.main(Main.java:141)

如何扭转这种情况?

1 个答案:

答案 0 :(得分:0)

您缺少类路径中的标准库。尝试-pp