<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:24px"><div id="yui_3_16_0_ym19_1_1460990459176_3083">Thanks for reply. I did include rt.jar in soot classpath. Otherwise, the error would be "couldn't find class xxx" but not "Couldn't load classfile xxx".</div><div id="yui_3_16_0_ym19_1_1460990459176_3083"><br></div><div id="yui_3_16_0_ym19_1_1460990459176_3083">Thanks,</div><div id="yui_3_16_0_ym19_1_1460990459176_3083">Yue</div><div class="qtdSeparateBR" id="yui_3_16_0_ym19_1_1460990459176_3087"><br><br></div><div class="yahoo_quoted" id="yui_3_16_0_ym19_1_1460990459176_3162" style="display: block;">  <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 24px;" id="yui_3_16_0_ym19_1_1460990459176_3161"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;" id="yui_3_16_0_ym19_1_1460990459176_3160"> <div dir="ltr" id="yui_3_16_0_ym19_1_1460990459176_3159"> <font size="2" face="Arial"> <hr size="1"> <b><span style="font-weight:bold;">From:</span></b> Vishu &lt;vishu@boojummobile.com&gt;<br> <b><span style="font-weight: bold;">To:</span></b> soot-list@CS.McGill.CA <br> <b><span style="font-weight: bold;">Sent:</span></b> Monday, April 18, 2016 12:04 AM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [Soot-list] exception during soot analysis<br> </font> </div> <div class="y_msg_container" id="yui_3_16_0_ym19_1_1460990459176_3163"><br>That quite likely means rt.jar is not part of the soot classpath.<br clear="none"><div class="yqt8777135720" id="yqtfd88014"><br clear="none">On 4/17/16 7:22 PM, Yue Duan wrote:<br clear="none">&gt; Hi guys,<br clear="none">&gt; Sorry to bother. I was using Soot 2.5.0 for some analysis. I implemented a few transformers, most of them were working just fine. But one of them gave me a runtime exception like <br clear="none">&gt; <br clear="none">&gt; Unknown tag in constant pool: 16 at entry 164Exception in thread "main" java.lang.RuntimeException: Could not load classfile: java.awt.GraphicsEnvironment at soot.coffi.Util.resolveFromClassFile(Util.java:75) at soot.CoffiClassSource.resolve(CoffiClassSource.java:39) at soot.SootResolver.bringToHierarchy(SootResolver.java:215) at soot.SootResolver.bringToSignatures(SootResolver.java:239) at soot.SootResolver.bringToBodies(SootResolver.java:280) at soot.SootResolver.processResolveWorklist(SootResolver.java:150) at soot.SootResolver.resolveClass(SootResolver.java:124) at soot.Scene.loadClass(Scene.java:448) at soot.Scene.loadClassAndSupport(Scene.java:433) at mySoot.AnalyzerMain.doGlobalForwardDataflowAnalysis(AnalyzerMain.java:1312) at mySoot.AnalyzerMain.run(AnalyzerMain.java:440) at mySoot.AnalyzerMain.main(AnalyzerMain.java:251)<br clear="none">&gt; Then I tried to use soot-trunk.jar from nightly built and I got a different exception like<br clear="none">&gt; jas.jasError: Badly formatted number&nbsp; &nbsp; &nbsp; &nbsp; at jasmin.Scanner.next_token(Scanner.java:216)&nbsp; &nbsp; &nbsp; &nbsp; at jasmin.parser.scan(parser.java:599)&nbsp; &nbsp; &nbsp; &nbsp; at java_cup.runtime.lr_parser.parse(lr_parser.java:693)&nbsp; &nbsp; &nbsp; &nbsp; at jasmin.ClassFile.readJasmin(ClassFile.java:1157)&nbsp; &nbsp; &nbsp; &nbsp; at jasmin.Main.assemble(Main.java:31)&nbsp; &nbsp; &nbsp; &nbsp; at soot.util.JasminOutputStream.flush(JasminOutputStream.java:35)&nbsp; &nbsp; &nbsp; &nbsp; at sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:297)&nbsp; &nbsp; &nbsp; &nbsp; at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:141)&nbsp; &nbsp; &nbsp; &nbsp; at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:229)&nbsp; &nbsp; &nbsp; &nbsp; at java.io.PrintWriter.flush(PrintWriter.java:320)&nbsp; &nbsp; &nbsp; &nbsp; at soot.PackManager.writeClass(PackManager.java:1151)&nbsp; &nbsp; &nbsp; &nbsp; at soot.PackManager.access$100(PackManager.java:137)&nbsp; &nbsp; &nbsp; &nbsp; at soot.PackManager$2.run(PackManager.java:667)&nbsp; &nbsp; &nbsp; &nbsp; at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)&nbsp; &nbsp; &nbsp; &nbsp; at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.j<br clear="none"> ava:617) <br clear="none">&nbsp; &nbsp; &nbsp;  at java.lang.Thread.run(Thread.java:745)Jasmin: Found 1 errorsjava.lang.ArrayIndexOutOfBoundsException: 6&nbsp; &nbsp; &nbsp; &nbsp; at org.objectweb.asm.ClassReader.readShort(ClassReader.java:2326)&nbsp; &nbsp; &nbsp; &nbsp; at org.objectweb.asm.ClassReader.&lt;init&gt;(ClassReader.java:169)&nbsp; &nbsp; &nbsp; &nbsp; at org.objectweb.asm.ClassReader.&lt;init&gt;(ClassReader.java:153)&nbsp; &nbsp; &nbsp; &nbsp; at org.objectweb.asm.ClassReader.&lt;init&gt;(ClassReader.java:424)&nbsp; &nbsp; &nbsp; &nbsp; at soot.asm.AsmClassSource.read(AsmClassSource.java:55)&nbsp; &nbsp; &nbsp; &nbsp; at soot.asm.AsmClassSource.resolve(AsmClassSource.java:65)&nbsp; &nbsp; &nbsp; &nbsp; at soot.SootResolver.bringToHierarchy(SootResolver.java:239)&nbsp; &nbsp; &nbsp; &nbsp; at soot.SootResolver.bringToSignatures(SootResolver.java:266)&nbsp; &nbsp; &nbsp; &nbsp; at soot.SootResolver.processResolveWorklist(SootResolver.java:170)&nbsp; &nbsp; &nbsp; &nbsp; at soot.SootResolver.resolveClass(SootResolver.java:131)&nbsp; &nbsp; &nbsp; &nbsp; at soot.Scene.loadClass(Scene.java:725)&nbsp; &nbsp; &nbsp; &nbsp; at soot.Scene.loadClassAndSupport(Scene.java:711)&nbsp; &nbsp; &nbsp; &nbsp; at soot.Scene.loadNecessaryClass(Scene.java:1425)&nbsp; &nbsp; &nbsp; &nbsp; at soot.Scene.loadNecessa<br clear="none"> ryClasses<br clear="none">(Scene.java:1436)&nbsp; &nbsp; &nbsp; &nbsp; at soot.Main.run(Main.java:243)&nbsp; &nbsp; &nbsp; &nbsp; at soot.Main.main(Main.java:147)&nbsp; &nbsp; &nbsp; &nbsp; at mySoot.AnalyzerMain.scanForSourcesAndSinks(AnalyzerMain.java:1109)&nbsp; &nbsp; &nbsp; &nbsp; at mySoot.AnalyzerMain.run(AnalyzerMain.java:393)&nbsp; &nbsp; &nbsp; &nbsp; at mySoot.AnalyzerMain.main(AnalyzerMain.java:251)<br clear="none">&gt; Could anybody help me a little bit? <br clear="none">&gt; Thanks,Yue</div><br clear="none">&gt; <br clear="none">&gt; <br clear="none">&gt; <br clear="none">&gt; _______________________________________________<br clear="none">&gt; Soot-list mailing list<br clear="none">&gt; <a shape="rect" ymailto="mailto:Soot-list@CS.McGill.CA" href="mailto:Soot-list@CS.McGill.CA">Soot-list@CS.McGill.CA</a><br clear="none">&gt; <a shape="rect" href="https://mailman.cs.mcgill.ca/mailman/listinfo/soot-list" target="_blank">https://mailman.CS.McGill.CA/mailman/listinfo/soot-list</a><br clear="none">&gt; <br clear="none">_______________________________________________<br clear="none">Soot-list mailing list<br clear="none"><a shape="rect" ymailto="mailto:Soot-list@CS.McGill.CA" href="mailto:Soot-list@CS.McGill.CA">Soot-list@CS.McGill.CA</a><br clear="none"><a shape="rect" href="https://mailman.cs.mcgill.ca/mailman/listinfo/soot-list" target="_blank">https://mailman.CS.McGill.CA/mailman/listinfo/soot-list</a><div class="yqt8777135720" id="yqtfd31460"><br clear="none"></div><br><br></div> </div> </div>  </div></div></body></html>