0

我在运行 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)

如何扭转这种局面?

4

1 回答 1

0

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

于 2018-12-10T13:22:16.033 回答