Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
DeepakUniAdel opened this issue Jul 23, 2022 · 4 comments

Comments

@DeepakUniAdel
Copy link

DeepakUniAdel commented Jul 23, 2022

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

@VidyaKamath
Copy link

@DeepakUniAdel
Copy link
Author

DeepakUniAdel commented Jul 24, 2022

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?

@nagkumar
Copy link

nagkumar commented Jul 24, 2022

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

@DeepakUniAdel
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants