[Soot-list] Error "couldn't find class: javax.crypto.spec.DESKeySpec" in running CallGraphExample

Bernhard Berger berber at tzi.de
Thu Jan 15 00:23:58 EST 2015


Hi,

I think you have to add /lib/jvm/jdk1.7.0_72/jre/lib/jce.jar to -soot-class-path. There soot will find the crypto stuff.

Regards, Bernhard

> Am 15.01.2015 um 02:32 schrieb Xinxin Jin <xinxinjin at hotmail.com>:
> 
> Hi,
> 
> I am trying to run the call graph example under soot/tutorial/guide (https://github.com/Sable/soot/tree/develop/tutorial/guide/examples/call_graph/src <https://github.com/Sable/soot/tree/develop/tutorial/guide/examples/call_graph/src>). 
> 
> It successfully compiled and generated CallGraphExample.class. Then I execute the following command: 
> java -Xmx512m -cp <soot> CallGraphExample -soot-class-path /lib/jvm/jdk1.7.0_72/jre/lib/rt.jar:.   
> 
> I got this error message: 
> soot.SootResolver$SootClassNotFoundException: couldn't find class: javax.crypto.spec.DESKeySpec (is your soot-class-path set properly?)
> 	at soot.SootResolver.bringToHierarchy(SootResolver.java:220)
> 	at soot.SootResolver.bringToSignatures(SootResolver.java:255)
> 	at soot.SootResolver.bringToBodies(SootResolver.java:291)
> 	at soot.SootResolver.processResolveWorklist(SootResolver.java:165)
> 	at soot.SootResolver.resolveClass(SootResolver.java:130)
> 	at soot.Scene.tryLoadClass(Scene.java:662)
> 	at soot.Scene.loadBasicClasses(Scene.java:1258)
> 	at soot.Scene.loadNecessaryClasses(Scene.java:1337)
> 	at soot.Main.run(Main.java:214)
> 	at soot.Main.main(Main.java:152)
> 	at dk.brics.soot.callgraphs.CallGraphExample.main(CallGraphExample.java:62)
> 
> 
> I'm sure I set soot path <soot> correctly. I also include the path to rt.jar and CallGraphExample to -soot-class-path. I didn't encounter this problem in other programs before, so I'm really confused why it fails... Is it because javax.crypto.spec.DESKeySpec is located in another jar file ? 
> 
> Thanks a lot !!
> _______________________________________________
> Soot-list mailing list
> Soot-list at CS.McGill.CA
> https://mailman.CS.McGill.CA/mailman/listinfo/soot-list

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.CS.McGill.CA/pipermail/soot-list/attachments/20150115/6a606ddf/attachment.html 


More information about the Soot-list mailing list