[Soot-list] class path problem

Jasen Carrol jasencarro at yahoo.com
Wed Jun 15 14:11:02 EDT 2005


Hi,

Thanks Jennifer. 

I've run into another issue. After I load one of my
classes as a SootClass and access one of its methods,
the ActiveBody of that method is null. Most of the
other fields appear to be set correctly. 

Is there a way I can create a Body based on my source
class file without having to override
internalTransform(...)?

Thanks again,
Jasen




> > Options.v().set_soot_classpath("myClassDir");
> > Scene.v().loadClassAndSupport("myClassName");

--- Jennifer Lhotak <jlhotak at cs.mcgill.ca> wrote:

> Hi,
> 
> Usually you don't need the .class part in the
> classname.
> So try making myClassName = test1 instead of
> test1.class
> 
> Jennifer
> 
> On Tue, 14 Jun 2005, Jasen Carrol wrote:
> 
> > Hi,
> >
> > I'm new to soot and I want to load some java
> classes
> > off the disk programmatically. I tried doing the
> > following:
> >
> > Options.v().set_soot_classpath("myClassDir");
> > Scene.v().loadClassAndSupport("myClassName");
> >
> >
> > However I get the following exception when I run
> my
> > program:
> >
> > java.lang.RuntimeException: couldn't find class:
> > test1.class (is your soot-class-path set
> properly?)
> >
> >
> > Is there antoher way to do this or am I simply
> messing
> > up some details? I would appreciate any help.
> >
> > Thanks,
> > Jasen
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam
> protection around
> > http://mail.yahoo.com
> > _______________________________________________
> > Soot-list mailing list
> > Soot-list at sable.mcgill.ca
> >
>
http://mailman.cs.mcgill.ca/mailman/listinfo/soot-list
> >
> 
> 

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


More information about the Soot-list mailing list