<div dir="auto">Thanks!<div dir="auto">I found the error. The java and javac command was using the built in in /usr/bin which is apple's.  Recompiling it using 1.8 specifically and ensuring the path are all map to 1.8 jdk resolved it!</div></div><br><div class="gmail_quote"><div dir="ltr">On Sat, 19 Jan 2019, 17:14 Ishaq <<a href="mailto:ishaq@ishaq.pk">ishaq@ishaq.pk</a> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">I believe you should be using jdk 1.8 at the latest (i could be wrong), also try passing the path to rt.jar e.g. something like this</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><span style="font-family:"Andale Mono";font-size:13px;font-variant-ligatures:no-common-ligatures">java -cp /Users/chingping.lee/</span><span style="font-family:"Andale Mono";font-size:13px;font-variant-ligatures:no-common-ligatures">Development/soot/sootclasses-</span><span style="font-family:"Andale Mono";font-size:13px;font-variant-ligatures:no-common-ligatures">trunk-jar-with-dependencies.</span><span style="font-family:"Andale Mono";font-size:13px;font-variant-ligatures:no-common-ligatures">jar soot.Main -cp .:/Library/Java/</span><span style="font-family:"Andale Mono";font-size:13px;font-variant-ligatures:no-common-ligatures">JavaVirtualMachines/jdk-11.0.</span><span style="font-family:"Andale Mono";font-size:13px;font-variant-ligatures:no-common-ligatures">1.jdk/Contents/Home/lib/rt.jar HelloWorldApp</span><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div><div dir="ltr" class="m_241908753742335280gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">--<div>MI</div></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="m_241908753742335280gmail_attr">On Sat, Jan 19, 2019 at 6:42 AM Ching Ping LEE <<a href="mailto:cplee@computer.org" target="_blank" rel="noreferrer">cplee@computer.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><span style="background-color:rgba(255,255,255,0)">Found the rt.jar in <span style="font-family:"Andale Mono";font-size:13px">/Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home/lib</span></span><div><font face="Andale Mono" size="2"><span style="background-color:rgba(255,255,255,0)"><br></span></font></div><div><font face="Andale Mono" size="2">My HelloWordApp as follows:</font></div><div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Andale Mono""><span style="font-variant-ligatures:no-common-ligatures;background-color:rgba(255,255,255,0)">class HelloWorldApp {</span></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Andale Mono""><span style="font-variant-ligatures:no-common-ligatures;background-color:rgba(255,255,255,0)">    public static void main(String[] args) {</span></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Andale Mono""><span style="font-variant-ligatures:no-common-ligatures;background-color:rgba(255,255,255,0)">        System.out.println("Hello World!"); // Display the string.</span></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Andale Mono""><span style="font-variant-ligatures:no-common-ligatures;background-color:rgba(255,255,255,0)">    }</span></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Andale Mono""><span style="font-variant-ligatures:no-common-ligatures;background-color:rgba(255,255,255,0)">}</span></div></div><div><font face="Andale Mono" size="2" style="background-color:rgba(255,255,255,0)"><br></font></div><div><font face="Andale Mono" size="2" style="background-color:rgba(255,255,255,0)">So I did the following:</font></div><div><font face="Andale Mono" size="2" style="background-color:rgba(255,255,255,0)"><br></font></div><div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Andale Mono""><span style="font-variant-ligatures:no-common-ligatures;background-color:rgba(255,255,255,0)">java -cp /Users/chingping.lee/Development/soot/sootclasses-trunk-jar-with-dependencies.jar soot.Main -cp .:/Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home/lib HelloWorldApp</span></div></div><div><font face="Andale Mono" size="2"><br></font></div><div>Then this is what I get:</div><div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Andale Mono""><span style="font-variant-ligatures:no-common-ligatures;background-color:rgba(255,255,255,0)">Soot started on Sat Jan 19 14:41:20 SGT 2019</span></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Andale Mono""><span style="font-variant-ligatures:no-common-ligatures;background-color:rgba(255,255,255,0)">java.lang.IllegalArgumentException</span></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Andale Mono""><span style="font-variant-ligatures:no-common-ligatures;background-color:rgba(255,255,255,0)"><span class="m_241908753742335280gmail-m_6819577339315379082Apple-tab-span" style="white-space:pre-wrap">     </span>at org.objectweb.asm.ClassReader.<init>(ClassReader.java:185)</span></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Andale Mono""><span style="font-variant-ligatures:no-common-ligatures;background-color:rgba(255,255,255,0)"><span class="m_241908753742335280gmail-m_6819577339315379082Apple-tab-span" style="white-space:pre-wrap">    </span>at org.objectweb.asm.ClassReader.<init>(ClassReader.java:168)</span></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Andale Mono""><span style="font-variant-ligatures:no-common-ligatures;background-color:rgba(255,255,255,0)"><span class="m_241908753742335280gmail-m_6819577339315379082Apple-tab-span" style="white-space:pre-wrap">    </span>at org.objectweb.asm.ClassReader.<init>(ClassReader.java:439)</span></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Andale Mono""><span style="font-variant-ligatures:no-common-ligatures;background-color:rgba(255,255,255,0)"><span class="m_241908753742335280gmail-m_6819577339315379082Apple-tab-span" style="white-space:pre-wrap">    </span>at soot.asm.AsmClassSource.resolve(AsmClassSource.java:65)</span></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Andale Mono""><span style="font-variant-ligatures:no-common-ligatures;background-color:rgba(255,255,255,0)"><span class="m_241908753742335280gmail-m_6819577339315379082Apple-tab-span" style="white-space:pre-wrap">     </span>at soot.SootResolver.bringToHierarchyUnchecked(SootResolver.java:240)</span></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Andale Mono""><span style="font-variant-ligatures:no-common-ligatures;background-color:rgba(255,255,255,0)"><span class="m_241908753742335280gmail-m_6819577339315379082Apple-tab-span" style="white-space:pre-wrap">  </span>at soot.SootResolver.bringToHierarchy(SootResolver.java:214)</span></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Andale Mono""><span style="font-variant-ligatures:no-common-ligatures;background-color:rgba(255,255,255,0)"><span class="m_241908753742335280gmail-m_6819577339315379082Apple-tab-span" style="white-space:pre-wrap">   </span>at soot.SootResolver.bringToSignatures(SootResolver.java:279)</span></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Andale Mono""><span style="font-variant-ligatures:no-common-ligatures;background-color:rgba(255,255,255,0)"><span class="m_241908753742335280gmail-m_6819577339315379082Apple-tab-span" style="white-space:pre-wrap">  </span>at soot.SootResolver.processResolveWorklist(SootResolver.java:172)</span></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Andale Mono""><span style="font-variant-ligatures:no-common-ligatures;background-color:rgba(255,255,255,0)"><span class="m_241908753742335280gmail-m_6819577339315379082Apple-tab-span" style="white-space:pre-wrap">     </span>at soot.SootResolver.resolveClass(SootResolver.java:134)</span></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Andale Mono""><span style="font-variant-ligatures:no-common-ligatures;background-color:rgba(255,255,255,0)"><span class="m_241908753742335280gmail-m_6819577339315379082Apple-tab-span" style="white-space:pre-wrap">       </span>at soot.Scene.loadClass(Scene.java:942)</span></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Andale Mono""><span style="font-variant-ligatures:no-common-ligatures;background-color:rgba(255,255,255,0)"><span class="m_241908753742335280gmail-m_6819577339315379082Apple-tab-span" style="white-space:pre-wrap">        </span>at soot.Scene.loadClassAndSupport(Scene.java:927)</span></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Andale Mono""><span style="font-variant-ligatures:no-common-ligatures;background-color:rgba(255,255,255,0)"><span class="m_241908753742335280gmail-m_6819577339315379082Apple-tab-span" style="white-space:pre-wrap">      </span>at soot.Scene.loadNecessaryClass(Scene.java:1729)</span></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Andale Mono""><span style="font-variant-ligatures:no-common-ligatures;background-color:rgba(255,255,255,0)"><span class="m_241908753742335280gmail-m_6819577339315379082Apple-tab-span" style="white-space:pre-wrap">      </span>at soot.Scene.loadNecessaryClasses(Scene.java:1741)</span></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Andale Mono""><span style="font-variant-ligatures:no-common-ligatures;background-color:rgba(255,255,255,0)"><span class="m_241908753742335280gmail-m_6819577339315379082Apple-tab-span" style="white-space:pre-wrap">    </span>at soot.Main.run(Main.java:241)</span></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Andale Mono""><span style="font-variant-ligatures:no-common-ligatures;background-color:rgba(255,255,255,0)"><span class="m_241908753742335280gmail-m_6819577339315379082Apple-tab-span" style="white-space:pre-wrap">        </span>at soot.Main.main(Main.java:141)</span></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Andale Mono";min-height:15px"><span style="background-color:rgba(255,255,255,0)"><span style="font-variant-ligatures:no-common-ligatures"></span><br></span></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Andale Mono";min-height:15px"><span style="background-color:rgba(255,255,255,0)"><span style="font-variant-ligatures:no-common-ligatures"></span>I did the same on a centOS VM build and it does not issue any error</span></div></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Andale Mono";min-height:15px"><span style="background-color:rgba(255,255,255,0)"><br></span></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Andale Mono";min-height:15px"><span style="background-color:rgba(255,255,255,0)">regards</span></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Andale Mono";min-height:15px"><span style="background-color:rgba(255,255,255,0)">CP</span></div><div><div><span style="font-variant-ligatures:no-common-ligatures"><br></span></div><div><br><blockquote type="cite"><div>On 19 Jan 2019, at 1:17 AM, Ishaq <<a href="mailto:ishaq@ishaq.pk" target="_blank" rel="noreferrer">ishaq@ishaq.pk</a>> wrote:</div><br class="m_241908753742335280gmail-m_6819577339315379082Apple-interchange-newline"><div><div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">I am running Mac OS Mojave and it seems to work for me.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">My path to rt.jar is<font> <span style="font-family:Monaco;font-size:11px">/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/jre/lib/</span></font></div>





<div><div dir="ltr" class="m_241908753742335280gmail-m_6819577339315379082gmail_signature"><div dir="ltr"><br></div><div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Have you tried to compile your input program first, Sometimes Soot can raise weird issue if you try to pass it .java which goes away when you pass it .class</div><br></div><div dir="ltr">--<div>MI</div></div></div></div></div>
</div></blockquote></div><br></div></div></blockquote></div>
</blockquote></div>