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

Xinxin Jin xinxinjin89 at gmail.com
Thu Jan 15 03:17:19 EST 2015


Thanks, Steven. I have posted in https://github.com/Sable/soot/issues/334


On Wednesday, January 14, 2015 at 11:27:07 PM UTC-8, Steven Arzt wrote:
>
> 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 <xinx... at hotmail.com 
> <javascript:>> 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 <xin... at cs.ucsd.edu 
> <javascript:>> 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 <ber... at tzi.de 
> <javascript:>> 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 <xinx... at hotmail.com 
> <javascript:>>:
> >>>>
> >>>> 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... at CS.McGill.CA <javascript:>
> >>>> https://mailman.CS.McGill.CA/mailman/listinfo/soot-list
> >>>
> >>>
> >>>
> >>> _______________________________________________
> >>> Soot-list mailing list
> >>> Soot... at CS.McGill.CA <javascript:>
> >>> 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/
> >>
> >
> _______________________________________________
> Soot-list mailing list
> Soot... at CS.McGill.CA <javascript:>
> 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/845b0f79/attachment.html 


More information about the Soot-list mailing list