[Soot-list] How to process a jar file in command line

贾翕 g.jessejia at gmail.com
Wed Mar 6 00:49:37 EST 2013


Hey,

I want to process a jar file in command line, below is my command and
exception:


//D:\test>java soot.Main -pp -process-dir bcel.jar
//Soot started on Wed Mar 06 13:43:15 CST 2013
//Exception in thread "main" java.lang.RuntimeException: couldn't find
class: org.
//apache.bcel.classfile.AccessFlags (is your soot-class-path set properly?)
//       at soot.SootResolver.bringToHierarchy(SootResolver.java:205)
//        at soot.SootResolver.bringToSignatures(SootResolver.java:239)
//        at soot.SootResolver.processResolveWorklist(SootResolver.java:154)
//        at soot.SootResolver.resolveClass(SootResolver.java:124)
//        at soot.Scene.loadClass(Scene.java:448)
//        at soot.Scene.loadClassAndSupport(Scene.java:433)
//        at soot.Scene.loadNecessaryClasses(Scene.java:1076)
//        at soot.Main.run(Main.java:167)
//        at soot.Main.main(Main.java:141)

What's more, when I use parameter -process-dir alone to process folder, it
works, below is the result

//D:\test>java soot.Main -process-dir .
//Soot started on Wed Mar 06 13:47:23 CST 2013
//Transforming DivisorDigits...
//Transforming HelloWorld...
//Transforming TextUI...
//Transforming UI...
//Writing to sootOutput\DivisorDigits.class
//Writing to sootOutput\HelloWorld.class
//Writing to sootOutput\TextUI.class
//Writing to sootOutput\UI.class
//Soot finished on Wed Mar 06 13:47:25 CST 2013
//Soot has run for 0 min. 2 sec.

What should I do?

Tanks for your attention , looking forward to your response.

Jesse
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.cs.mcgill.ca/pipermail/soot-list/attachments/20130306/3373bad6/attachment.html 


More information about the Soot-list mailing list