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

Steven Arzt Steven.Arzt at cased.de
Thu Jan 15 02:20:42 EST 2015


Hi Xinxin,

That shouldn't happen. Can you please open an issue in our issue tracker at Github and provide a link to the year project you wanted to transform with Soot?

Best regards,
StevenOn Jan 15, 2015 7:50 AM, Xinxin Jin <xinxinjin at hotmail.com> wrote:
>
> Thanks for your help! I add jce.jar to the -soot-class-path, and now it does not show that error any more. But instead I got some weird Jasmin error as follows: 
>
> Soot started on Wed Jan 14 18:34:00 EST 2015
> [Call Graph] For information on where the call graph may be incomplete, use the verbose option to the cg phase.
> Transforming testers.CallGraphs...
> Writing to sootOutput/testers/CallGraphs.class
> Jasmin:14: Warning - Syntax error.
>
> ^
> Jasmin:14: Error - Couldn't repair and continue parse.
>
> ^
> Jasmin: Found 2 errors
>
> I know little about Jasmin and the error message does not give concrete information, so I have no idea how to debug it .... Could you please give any suggestions ? Thanks !!
>
> On Wed, Jan 14, 2015 at 10:48 PM, Xinxin Jin <xinxin at cs.ucsd.edu> wrote:
>>
>> Thanks for your help! I add jce.jar to the -soot-class-path, and now it does not show that error any more. But instead I got some weird Jasmin error as follows: 
>>
>> Soot started on Wed Jan 14 18:34:00 EST 2015
>> [Call Graph] For information on where the call graph may be incomplete, use the verbose option to the cg phase.
>> Transforming testers.CallGraphs...
>> Writing to sootOutput/testers/CallGraphs.class
>> Jasmin:14: Warning - Syntax error.
>>
>> ^
>> Jasmin:14: Error - Couldn't repair and continue parse.
>>
>> ^
>> Jasmin: Found 2 errors
>>
>> I know little about Jasmin and the error message does not give concrete information, so I have no idea how to debug it .... Could you please give any suggestions ? Thanks !!
>>
>> On Wed, Jan 14, 2015 at 9:23 PM, Bernhard Berger <berber at tzi.de> wrote:
>>>
>>> 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). 
>>>>
>>>> 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
>>>
>>>
>>>
>>> _______________________________________________
>>> Soot-list mailing list
>>> Soot-list at CS.McGill.CA
>>> https://mailman.CS.McGill.CA/mailman/listinfo/soot-list
>>>
>>
>>
>>
>> -- 
>> Xinxin Jin 
>> Ph.D. student, Computer Science
>> University of California, San Diego
>> http://cseweb.ucsd.edu/~x7jin/
>>
>


More information about the Soot-list mailing list