[Soot-list] Running Soot several times

Patrick Lam plam at sable.mcgill.ca
Fri Jan 6 11:52:13 EST 2012


On 01/06/2012 04:41 AM, Stephan Arlt wrote:
> Hi,
>
> We are working on a user interface for Soot, which is supposed to call the
> method "soot.Main.main(someArgs)" several times, e.g., after the user has
> clicked "run soot". The first call of Soot's main-method succeeds, but the
> second call throws the following exception:
>
> Option parse error
> Duplicate values /myPath/bin/ and /myPath/bin/ for option -cp
>
> Is Soot caching options from previous calls of the main-method?
> Or, is there a way to run Soot a bunch of times in the space of 1 Java
> process?

Yes, Soot.G.reset() should do what you want.

pat



More information about the Soot-list mailing list