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

John Dee jdsoot at hotmail.com
Tue Jul 26 09:54:42 EDT 2011


Thanks for the reply Pat.I tried	   // add on the following arguments	   argsList.addAll(Arrays.asList(new String[]{			   "-w",			   "testers.CallGraphs",			   "-cp",			   ".:c:/Program Files/Java/jdk1.6.0_20/jre/lib/jce.jar"	   }));Which is the directory where the 'jce.jar' file is on my machine, but it's still giving me 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>Am I doing this correct?Thanks againJD
> Date: Tue, 26 Jul 2011 09:34:22 -0400
> From: plam at sable.mcgill.ca
> To: soot-list at sable.mcgill.ca
> Subject: Re: [Soot-list] Building a call graph for a class that has no main
> 
> 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
> _______________________________________________
> Soot-list mailing list
> Soot-list at sable.mcgill.ca
> http://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/20110726/1a5f72c0/attachment.html 


More information about the Soot-list mailing list