Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Building Soot with IntelliJ IDEA
Contributed by Konrad Jamrozik, GitHub account
Download IntelliJ IDEA from Jetbrains
Go to import project and select your '.project' file and click OK. To obtain the '.project' file, clone the Soot GitHub repository.
Step 3 Next select the Soot directory
Step 4 Import project from external model Eclipse
Check the box with ‘keep project and module file in’ and ‘project format as ‘.idea'.
Note: Because we are keeping the project files in '.idea' dir, all of them will be ignored with ".idea" line in .gitignore
Uncheck all projects except Soot. The unchecked projects are related to eclipse plug-in.
Note: Build path will be broken. Java SDK probably won't be recognized and some jars might be missing.
Change the module's dependencies storage format to IntelliJ IDEA, so you won't have to modify the .classpath file. You can easily fix the SDK by resetting it, which is done in next step.
Go to view and open module settings and Dependencies tab and select your Java version.
Download the missing jars:
- heros.jar and jasminclasses.jar, available from https://soot-build.cs.uni-paderborn.de/public/origin/develop/soot/ [This location now contains
soot-trunk.jarwhich needs to be downloaded instead of both
jasminclasses.jar. The project will still compile and run in IntelliJ Idea]
- ant.jar is available e.g. at http://mvnrepository.com/artifact/org.apache.ant/ant/1.9.2
- java_cup.jar available from Sable/jasmin repo at https://github.com/Sable/jasmin/tree/master/libs
Put these files in
./libs_intellij so they are picked up by .gitignore. The final dependencies should resemble (
java_cup.jar is not on the screenshot, but it should be):
Create Run configuration by going to Run -> edit configuration
Congratulations! You have successfully imported & built Soot with IntelliJ IDEA.