soot-oss / soot

Soot - A Java optimization framework
GNU Lesser General Public License v2.1
2.89k stars 708 forks source link

java.lang.RuntimeException when ... #1816

Open jzx-bitdb opened 2 years ago

jzx-bitdb commented 2 years ago

Steps to reproduce: 1.) ...

Files used to reproduce: ...

Soot version:

trunk

Command line:

soot.Main Employee

Max Memory:

976MB

Stack trace:

java.lang.RuntimeException: Error: cannot find rt.jar.
    at soot.Scene.defaultJavaClassPath(Scene.java:635)
    at soot.Scene.defaultClassPath(Scene.java:527)
    at soot.Scene.getSootClassPath(Scene.java:283)
    at soot.SourceLocator.getClassSource(SourceLocator.java:168)
    at soot.Scene.tryLoadClass(Scene.java:812)
    at soot.Scene.loadBasicClasses(Scene.java:1496)
    at soot.Scene.loadNecessaryClasses(Scene.java:1579)
    at soot.Main.run(Main.java:250)
    at soot.Main.main(Main.java:147)
SnoopyTlion commented 2 years ago

Read this first, you need set your sootClassPath correctly. https://github.com/soot-oss/soot/wiki/Introduction:-Soot-as-a-command-line-tool#soots-classpath