[Soot-list] External libs

Eric Bodden eric.bodden at mail.mcgill.ca
Tue Apr 17 08:09:02 EDT 2007


Have you tried changing the order of the JAR files on the classpath?
Sometimes that matters for weird reasons I never understood.

Eric

On 17/04/07, Xinyu Liu <xl3t at cs.virginia.edu> wrote:
>
>
>
>
> Hi,
>
>
>
> I was trying to use SOOT to compile a java file with external jar libs but
> failed. I used the command:
>
>
>
> soot.Main -f jimple -cp
> C:\javalibs;C:\javalibs\rt.jar;C:\javalibs\jce.jar;c:\javalibs\jsse.jar;c:\javalibs\jfreechart.jar;c:\javalibs\jcommon.jar
>  test16
>
>
>
> Among them, jfreechart.jar and jcommon.jar are the external libs.
> test16.java is supposed to import org.jfree.chart.ChartFactory class from
> jfreechart.jar. The error message I got:
>
>
>
> Soot started on Tue Apr 17 00:02:35 EDT 2007
>
> test16.java: Class "org.jfree.chart.ChartFactory" not found.
>
> compilation failed: Could not compile
>
>
>
> Actually org.jfree.chart.ChartFactory is in jfreechart.jar. And it worked
> fine when I had no external libs but only used classes from rt.jar, jce.jar
> or jsse.jar. Could you please let me know how to load external libs into
> SOOT? Thank you very much.
>
>
>
> Xinyu
> _______________________________________________
> Soot-list mailing list
> Soot-list at sable.mcgill.ca
> http://mailman.cs.mcgill.ca/mailman/listinfo/soot-list
>
>


-- 
Eric Bodden
Sable Research Group
McGill University, Montréal, Canada


More information about the Soot-list mailing list