[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

soot classpath problem



Hi,

When constructing a FastHierarchy, I get the following exception:

java.lang.RuntimeException:
Aborting: can't find classfilejava.lang.Object
   at soot.Scene.getSootClass(Scene.java:300)
   at soot.FastHierarchy.<init>(FastHierarchy.java:132)

I have set my soot classpath as follows:

String libPath = System.getProperty( "java.home" ) + File.separator + "lib"
           + File.separator + "rt.jar";
Scene.v().setSootClassPath(libPath);

when I print Scene.v().getSootClassPath();, it gives me the correct path to rt.jar, so it is finding it alright.

Could you tell me what could be going wrong?

Cheers,

Neil