[Soot-list] Building a call graph for a class that has no main

Patrick Lam plam at sable.mcgill.ca
Tue Jul 26 09:34:22 EDT 2011


On 07/26/11 09:32, John Dee wrote:
> But I get a very strange exception:
>
> Exception in thread "main" java.lang.RuntimeException: couldn't find
> class: javax.crypto.Cipher (is your soot-class-path set properly?)
> Try adding jce.jar to Soot's classpath, e.g.:
> java -cp sootclasses.jar soot.Main -cp
> .:/path/to/jdk/jre/lib/rt.jar:/path/to/jdk/jre/lib/jce.jar <other options>
>
> Is there an easy fix for this? I'm using Eclipse 3.6.1 and the latest
> Soot jar file from here: http://vandyk.st.informatik.tu-darmstadt.de/abc/

Yes, you should add jce.jar to Soot's classpath, as it says. Add it to 
the argsList at the beginning of main().

pat


More information about the Soot-list mailing list