[Soot-list] Java-To-Jimple

Barthelemy Dagenais barthed at hotmail.com
Tue Nov 22 11:39:31 EST 2005


Hi,

I'm trying to parse a java project with Soot. I would like to transform java 
file to jimple and this works well with the src_prec option set to java. My 
problem is when the source code depends on compiled classes in an external 
jar. Even if the jar is in the classpath, I receive an exception like this 
one:

C:\Java\workspace_clean\LibProject\src\ca/uqam/test/Application1.java: Class
    "org.apache.commons.cli.Options" not found.

soot.CompilationDeathException: Could not compile
	at soot.javaToJimple.JavaToJimple.compile(JavaToJimple.java:162)
	at soot.javaToJimple.InitialResolver.formAst(InitialResolver.java:35)
	at soot.SootResolver.resolveClassAndSupportClasses(SootResolver.java:135)
	at soot.Scene.loadClassAndSupport(Scene.java:255)
	at soot.Scene.loadNecessaryClasses(Scene.java:642)
...

Is there a way to transform source files that depends on compiled classes?

The code is transformed without problem if I only provide the class files 
without the sources.

Regards,
Barthelemy




More information about the Soot-list mailing list