[Soot-list] Loading Class from any path

Eric Bodden bodden at st.informatik.tu-darmstadt.de
Mon Apr 5 14:39:28 EDT 2010


Hello.

You just have to set the CLASSPATH of Soot accordingly, using the -cp parameter.
Eric

--
Dr. Eric Bodden
Software Technology Group, Technische Universität Darmstadt, Germany
Tel: +49 6151 16-5478    Fax: +49 6151 16-5410
Mailing Address: S2|02 A209, Hochschulstraße 10, 64289 Darmstadt



On 3 April 2010 21:37, brunobreno breno <brunobreno09 at gmail.com> wrote:
> I'm looking for a way to make reference to a class in any local (any
> folder).
> In the example below, for example, the String classeExample refer to a class
> Ex wich is into my Java Eclipse Project. How can i refer a class wich is in
> another project, in any folder?
> public static void main(String[] args) {
>
> PackManager.v().getPack("jtp").add(
>   new Transform("jtp.myTransform", new BodyTransformer() {
> protected void internalTransform(Body arg0, String arg1,
> Map arg2) {
> }
> }));
>
>  String classeExample = "Ex";
>  String [] array = {"-f", "J", "-keep-line-number", "-src-prec", "java",
> classeExample};
>  soot.Main.v().main(array);
> }
>
> Thanks!
> _______________________________________________
> Soot-list mailing list
> Soot-list at sable.mcgill.ca
> http://mailman.cs.mcgill.ca/mailman/listinfo/soot-list
>
>


More information about the Soot-list mailing list