[Soot-list] TR: Error: class sablecc.SableCC read in from a classfile in which SableCC was expected

Ondrej Lhotak olhotak at uwaterloo.ca
Mon Jan 30 16:22:03 EST 2006


What class does the SableCC.class file contain? It sounds like it
contains the class sablecc.SableCC. If that's the case, you should
put C:\ on your classpath instead of C:\sablecc, and you should specify
sablecc.SableCC on the command line instead of just SableCC.

Ondrej

On Mon, Jan 30, 2006 at 03:05:41PM -0500, Sébastien Adam wrote:
> 
>  
> Hi,
>  
> Does somebody know what is the problem?
>  
> I work with Windows XP and soot-2.2.0.  I have a problem with my classpath. I
> set my PATH and CLASSPATH as follow to get around this problem :
>  
> C:\Program Files\Java\jdk1.5.0_06\bin;
> C:\aspectj1.5\bin;
> C:\aspectj1.5\lib\aspectjrt.jar;
> C:\sabs\local\system;
> C:\Python24;
> C:\abc-1.1.0;C:\abc-1.1.0\bin;
> C:\abc-1.1.0\lib\abc-complete.jar;
> C:\abc-1.1.0\lib\abc-runtime.jar;
> C:\WINDOWS\system32;
> C:\WINDOWS;
> C:\WINDOWS\System32\Wbem;
> C:\Program Files\ATI Technologies\ATI Control Panel;
> C:\Program Files\Fichiers communs\STOPzilla!;
> C:\Program Files\Java\jdk1.5.0_06\bin;
> CC::\\ssoooott--22..22..22\\ccllaasssseess;;
> CC::\\jjaassmmiinn--22..22..22\\ccllaasssseess;;
> CC::\\ppoollyygglloott--11..33..22\\ccllaasssseess;;
> CC::\\ppoollyygglloott--11..33..22\\ccuupp--ccllaasssseess;;
> C:\Program Files\Java\jdk1.5.0_06\jre\lib\rt.jar;
> CC::\\ssaabblleecccc
>  
> But I get another problem :
>  
> C:\>java soot.Main SableCC
> Soot started on Mon Jan 30 14:32:04 EST 2006
> Exception in thread "main" java.lang.RuntimeException: Error: class
> sablecc.SableCC read in from a classfile in which SableCC was expected.
>         at soot.coffi.Util.resolveFromClassFile(Util.java:93)
>         at soot.CoffiClassSource.resolve(CoffiClassSource.java:37)
>         at soot.SootResolver.bringToHierarchy(SootResolver.java:148)
>         at soot.SootResolver.bringToSignatures(SootResolver.java:172)
>         at soot.SootResolver.processResolveWorklist(SootResolver.java:104)
>         at soot.SootResolver.resolveClass(SootResolver.java:89)
>         at soot.Scene.loadClass(Scene.java:329)
>         at soot.Scene.loadClassAndSupport(Scene.java:314)
>         at soot.Scene.loadNecessaryClass(Scene.java:861)
>         at soot.Scene.loadNecessaryClasses(Scene.java:880)
>         at soot.Main.run(Main.java:177)
>         at soot.Main.main(Main.java:153)
>  
> SableCC.class is in the folder C:\sablecc. This folder is in my PATH and
> CLASSPATH variables as you can see above.
>  
> If I remove C:\sablecc from my PATH and CLASSPATH variables I get the following
> problem :
>  
> C:\sablecc>java soot.Main SableCC
> Soot started on Mon Jan 30 14:42:27 EST 2006
> Exception in thread "main" java.lang.RuntimeException: couldn't find class:
> SableCC (is your soot-class-path set properly?)
>         at soot.SootResolver.bringToHierarchy(SootResolver.java:139)
>         at soot.SootResolver.bringToSignatures(SootResolver.java:172)
>         at soot.SootResolver.processResolveWorklist(SootResolver.java:104)
>         at soot.SootResolver.resolveClass(SootResolver.java:89)
>         at soot.Scene.loadClass(Scene.java:329)
>         at soot.Scene.loadClassAndSupport(Scene.java:314)
>         at soot.Scene.loadNecessaryClass(Scene.java:861)
>         at soot.Scene.loadNecessaryClasses(Scene.java:880)
>         at soot.Main.run(Main.java:177)
>         at soot.Main.main(Main.java:153)
>  
> OORR
>  
> C:\sablecc>java soot.Main -cp "." SableCC
> Soot started on Mon Jan 30 14:43:21 EST 2006
> Exception in thread "main" java.lang.RuntimeException: Error: class
> sablecc.Sabl
> eCC read in from a classfile in which SableCC was expected.
>         at soot.coffi.Util.resolveFromClassFile(Util.java:93)
>         at soot.CoffiClassSource.resolve(CoffiClassSource.java:37)
>         at soot.SootResolver.bringToHierarchy(SootResolver.java:148)
>         at soot.SootResolver.bringToSignatures(SootResolver.java:172)
>         at soot.SootResolver.processResolveWorklist(SootResolver.java:104)
>         at soot.SootResolver.resolveClass(SootResolver.java:89)
>         at soot.Scene.loadClass(Scene.java:329)
>         at soot.Scene.loadClassAndSupport(Scene.java:314)
>         at soot.Scene.loadNecessaryClass(Scene.java:861)
>         at soot.Scene.loadNecessaryClasses(Scene.java:880)
>         at soot.Main.run(Main.java:177)
>         at soot.Main.main(Main.java:153)
>  
> Can anybody help me?
>  
> Regard,
> Seb
>  

> _______________________________________________
> Soot-list mailing list
> Soot-list at sable.mcgill.ca
> http://mailman.cs.mcgill.ca/mailman/listinfo/soot-list



More information about the Soot-list mailing list