secure-software-engineering / SuSi

SuSi - our tool to automatically discover sources and sinks in the Android framework
143 stars 74 forks source link

Exception in thread "main" java.long.RuntimeException": #9

Open cardaminexhz opened 8 years ago

cardaminexhz commented 8 years ago

Hi, I have tried to use SuSi to generate Android sources and sinks, so that I can use them as input in FlowDroid to generate CFG. But now I encountered this problem when I tried to run SuSi by input this in command line(windows): java -cp lib/weka.jar;soot-trunk.jar;soot-infoflow.jar;soot-infoflow-android.jar;SuSi.jar de.ecspride.sourcesinkfinder.SourceSinkFinder android-10.jar permissionMethodWithLabel.pscout out.pscout Then, I got this error. 1

I get 'andorid-10.jar' from Sable/android-platforms(I have also tried some other android-xx.jars, e.g. 9, 11, 13, 15, 17, still got the same error), and get other required jars from the place where StevenArzt mentioned in issue #3 . image

So, may somebody offer me some help?

StevenArzt commented 8 years ago

Your android-10.jar file looks a bit too small with only 44 KB. It should be roughly 8 MB of size. Did you really use this link? https://github.com/Sable/android-platforms/blob/master/android-10/android.jar?raw=true

cardaminexhz commented 8 years ago

Thank you for pointing this. I should be more careful.

But then I got another problem. I operated in branch develop, use the right Android.jar. qq 20160504102907

The problem is shown as followed qq 20160504103009

StevenArzt commented 8 years ago

Are you using our original input file with the annotations or did you modify it? Apparently, the machine learner is complaining about inconsistent classifications in that file.

cardaminexhz commented 8 years ago

Yes, I used the original input file without modification. I just copyed soot-trunk.jar;soot-infoflow.jar;soot-infoflow-android.jar;SuSi.jar and Android.jar to the same directory. Then, I execuated the command. I've tried several times, but just got the same problem. Thanks for your time.

lizheng5916 commented 8 years ago

I also meet the problem ,have you solve the exception ?

cardaminexhz commented 8 years ago

Sorry, I didn't.

lizheng5916 commented 8 years ago

windows platform cause the problem? who knows?

Zhongen commented 7 years ago

Hi, where I can get SuSi.jar file?

freefire4547 commented 7 years ago

He has provided link for nightly build but its not working. I imported project and built using IDE.