SootTutorial icon indicating copy to clipboard operation
SootTutorial copied to clipboard

java.lang.RuntimeException: None of the basic classes could be loaded! Check your Soot class path!

Open DeepakUniAdel opened this issue 2 years ago • 4 comments

I am getting this error on running ./gradlew check. Where should I set the Soot class path? What would be going wrong here?

DeepakUniAdel avatar Jul 23 '22 15:07 DeepakUniAdel

Check this link: https://github.com/soot-oss/soot/wiki/Introduction:-Soot-as-a-command-line-tool#soots-classpath

VidyaKamath avatar Jul 23 '22 23:07 VidyaKamath

Check this link: https://github.com/soot-oss/soot/wiki/Introduction:-Soot-as-a-command-line-tool#soots-classpath

I looked in to it but they have mentioned how to set class path while installing Soot, but what about this repository Soot Tutorial? here the tests are run automatically right? for example if we want to check the test cases of android files used, they have already encoded the test cases. So how to load class path when its already preset? should we change the gradle file or something?

DeepakUniAdel avatar Jul 24 '22 00:07 DeepakUniAdel

image

take the rt.jar and unzip it xxx\SootTutorial\demo\IntraAnalysis directory as above then run the command

gradlew run --args="UsageFinder 'void println(java.lang.String)' 'java.io.PrintStream'"

would show results as

image

for the reason

image

it is only looking in xxx\SootTutorial\demo\IntraAnalysis

Maybe some bug.. or needs further analysis..with the help of the original authors.. pl. see this as a shortcut based on my code breakpoint debugging and limited analysis

nagkumar avatar Jul 24 '22 11:07 nagkumar

Thank you so much sir... It worked Screenshot 2022-07-24 at 8 44 28 PM

DeepakUniAdel avatar Jul 24 '22 11:07 DeepakUniAdel