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

Eric Bodden bodden at st.informatik.tu-darmstadt.de
Tue Jul 26 10:40:05 EDT 2011


Maybe you could try adding the command line argument on the actual
command line that you use to call your CallGraphExample class. Also,
there's this syntax Progra~1 that you can often use for folders with
long names.

Other than that I am running out of ideas. Windows is just really
troublesome that way...

Eric

On 26 July 2011 16:35, John Dee <jdsoot at hotmail.com> wrote:
> Still not working
>   // 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"
>   }));
> Eric's blog shows the use of a ':' as a delimiter but this won't work
> either.
> It looks like i've the exact same issue as the user had in reply #20 and #21
> here on Eric's blog
> http://www.bodden.de/2008/08/21/soot-command-line/
> I also tried using "-pp" but no luck either.
> Any other suggestions would be greatly welcome. I'm completely stumped, but
> I know I'm close to getting this working.
> Regards
> JD
>
>> Date: Tue, 26 Jul 2011 10:24:59 -0400
>> From: plam at sable.mcgill.ca
>> To: jdsoot at hotmail.com
>> Subject: Re: [Soot-list] Building a call graph for a class that has no
>> main
>>
>> ; not :, as Eric wrote.
>>
>> On 07/26/11 10:04, John Dee wrote:
>> > My apologies, yes I tried this.
>> >
>> > // 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"
>> > }));
>> >
>> > Does Soot complain if there are spaces in the directory names, like
>> > "Program Files"?
>> >
>> > Regards,
>> > JD
>> >
>> > > From: bodden at st.informatik.tu-darmstadt.de
>> > > Date: Tue, 26 Jul 2011 16:00:55 +0200
>> > > Subject: Re: [Soot-list] Building a call graph for a class that has
>> > no main
>> > > To: jdsoot at hotmail.com
>> > > CC: soot-list at sable.mcgill.ca
>> > >
>> > > Windows uses backslashes for paths and ; instead of : for separating
>> > > path elements...
>> > >
>> > > Try ".;c:\\Program Files\\Java\\jdk1.6.0_20\\jre\\lib\\jce.jar"
>> > >
>> > > Eric
>> > >
>> > > On 26 July 2011 15:54, John Dee <jdsoot at hotmail.com> wrote:
>> > > > 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 again
>> > > > JD
>> > > >> 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
>> > > >
>> > > > _______________________________________________
>> > > > Soot-list mailing list
>> > > > Soot-list at sable.mcgill.ca
>> > > > http://mailman.cs.mcgill.ca/mailman/listinfo/soot-list
>> > > >
>> > > >
>> > >
>> > >
>> > >
>> > > --
>> > > Dr. Eric Bodden, http://bodden.de/
>> > > Principal Investigator in Secure Services at CASED
>> > > Coordinator of the CASED Advisory Board of Study Affairs
>> > > PostDoc at Software Technology Group, Technische Universität Darmstadt
>> > > Tel: +49 6151 16-5478 Fax: +49 6151 16-5410
>> > > Mailing Address: S2|02 A209, Hochschulstraße 10, 64289 Darmstadt
>> >
>> >
>> >
>> > _______________________________________________
>> > Soot-list mailing list
>> > Soot-list at sable.mcgill.ca
>> > http://mailman.cs.mcgill.ca/mailman/listinfo/soot-list
>>
>
> _______________________________________________
> Soot-list mailing list
> Soot-list at sable.mcgill.ca
> http://mailman.cs.mcgill.ca/mailman/listinfo/soot-list
>
>



-- 
Dr. Eric Bodden, http://bodden.de/
Principal Investigator in Secure Services at CASED
Coordinator of the CASED Advisory Board of Study Affairs
PostDoc at Software Technology Group, Technische Universität Darmstadt
Tel: +49 6151 16-5478    Fax: +49 6151 16-5410
Mailing Address: S2|02 A209, Hochschulstraße 10, 64289 Darmstadt


More information about the Soot-list mailing list