secure-software-engineering / FlowDroid

FlowDroid Static Data Flow Tracker
GNU Lesser General Public License v2.1
1.05k stars 298 forks source link

Can not run project with FlowDroid #723

Closed RabbitDong-on closed 5 months ago

RabbitDong-on commented 5 months ago

I add Flowdroid via Maven like below.

de.fraunhofer.sit.sse.flowdroid soot-infoflow 2.12.0
<dependency>
    <groupId>de.fraunhofer.sit.sse.flowdroid</groupId>
    <artifactId>soot-infoflow-summaries</artifactId>
    <version>2.12.0</version>
</dependency>
<dependency>
    <groupId>de.fraunhofer.sit.sse.flowdroid</groupId>
    <artifactId>soot-infoflow-android</artifactId>
    <version>2.12.0</version>
</dependency>

I can compile project, but can not run. I get the following information in the shell. Error: Unable to initialize main class taintanalysis.STA Caused by: java.lang.NoClassDefFoundError: soot/jimple/infoflow/config/IInfoflowConfig

Please help me slove this problem. thanks.

StevenArzt commented 5 months ago

Can you provide a link to the full project? We integrate FlowDroid via Maven in various projects and it normally works just fine.

RabbitDong-on commented 5 months ago

Thanks for your reply. Recently, i am studing the flowdroid. I try to run this project(https://github.com/dorawyy/flowdroid_tutorial). I modified the version of flowdroid in the pom.xml.

RabbitDong-on commented 5 months ago

the code is in the master branch.

RabbitDong-on commented 5 months ago

Env: Maven 3.6.0; Java 8

RabbitDong-on commented 5 months ago

Could you provide some advises to solve this problem? thanks

RabbitDong-on commented 5 months ago

This problem is fixed. The root cause is from misconfiguration.

StevenArzt commented 5 months ago

ok, great to hear that. Sorry for not replying, I was quite busy. You might have seen that we have released a new FlowDroid version and since then, we have also worked on the next improvements.

RabbitDong-on commented 5 months ago

Hi, Steven. cloud you provide some suggestions on #724