[Soot-list] problem in command line

Eric Bodden eric.bodden at ec-spride.de
Thu Jan 31 08:12:22 EST 2013


You are missing the .jar endings...


On 31 January 2013 13:54, Zeinab Lashkaripour <lashkaripour at yahoo.com> wrote:
> Hi and Thanks for your reply.
> I have checked my classpath it is :
> "directory\soot-2.5.0;directory\polyglot-1.3.5;directory\jasmin-2.5.0"
> Your last suggestion didn't work for me. Where should exactly soot.Main be?
>
> Cheers,
> Zeinab
>
> ----- Original Message -----
> From: Quentin Sabah <quentin.sabah at inria.fr>
> To: soot-list at sable.mcgill.ca
> Cc:
> Sent: Thursday, January 31, 2013 3:53 PM
> Subject: Re: [Soot-list] problem in command line
>
> Hi,
>
>> I wanted to use soot from the command line but, although setting the
>> CLASSPATH (
>> sootclasses-2.3.0.jar:jasminclasses-2.3.0.jar:polyglotclasses-1.3.5.jar
>> but in the right directory ), when running " java soot.Main --help "
>> I get the following error: could not find or load main class
>> soot.Main. (when I run java -jar soot-2.5.0.jar I don't get any
>> error)
>>
>> What am I missing?
>
> I guess the error message comes from your JVM, not Soot. I suspect your
> CLASSPATH definition does not reach the JVM when you run it, or the
> specified path to sootclasses-2.3.0.jar is wrong.
>
> 1) Check the CLASSPATH is set correctly by running the "env" command in your
> shell.
> 2) Double check the paths you set in CLASSPATH are valid.
> 3) Try to specify the classpath using a command line argument of your JVM
> (usually with "-cp").
> 4) Check the soot jar do contains soot.Main: "jar -tf sootclasses-2.3.0.jar
> | grep Main" should print "soot/Main.class".
>
> --
> Quentin Sabah, co-funded Ph.D. student
> Grenoble University
> INRIA-SARDES                  | STMicroelectronics/AST
> Montbonnot, France            | Grenoble, France
> mailto:quentin.sabah at inria.fr  | mailto:quentin.sabah at st.com
> phone: +33 476 61 52 42        | phone: +33 476 58 44 14
> _______________________________________________
> Soot-list mailing list
> Soot-list at sable.mcgill.ca
> http://mailman.cs.mcgill.ca/mailman/listinfo/soot-list
>
> _______________________________________________
> Soot-list mailing list
> Soot-list at sable.mcgill.ca
> http://mailman.cs.mcgill.ca/mailman/listinfo/soot-list
>



-- 
Eric Bodden, Ph.D., http://sse.ec-spride.de/ http://bodden.de/
Head of Secure Software Engineering Group at EC SPRIDE
Tel: +49 6151 16-75422    Fax: +49 6151 16-72051
Room 3.2.14, Mornewegstr. 30, 64293 Darmstadt


More information about the Soot-list mailing list