<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><font face="Times New Roman, Times, serif">Hi everyone!<br>
</font></p>
<p><font face="Times New Roman, Times, serif">Newbie here, trying to set up Soot plugin in my Eclipse</font><font face="Times New
Roman, Times, serif">
</font><font face="Times New Roman,
Times, serif">4.3.2</font><font face="Times New Roman, Times,
serif"> (Kepler release). I was following the tutorial at
<a href="https://github.com/Sable/soot/wiki/Running-Soot-as-Eclipse-Plugin">https://github.com/Sable/soot/wiki/Running-Soot-as-Eclipse-Plugin</a>.
<br>
</font></p>
<p><font face="Times New Roman, Times, serif">I was able to download and install the plugin (Soot version 2.5.2). But when I right-clicked on the .java file in Eclipse's Package Explorer, and went to
<i>soot -> Process Source File -> Create Jimple</i>, I got the error message below.</font><br>
</p>
<p><font face="Courier New, Courier, monospace">Starting from Soot's class library:<br>
soot.Main --keep-line-number --xml-attributes --f J --src-prec java --cp /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/icedtea-sound.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/sunpkcs11.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/charsets.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/sunec.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jsse.jar:/home/wei/kepler-workspace/SootTest/bin/:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/jaccess.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/rt.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/nashorn.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jce.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/resources.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/sunjce_provider.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/zipfs.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/dnsns.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/cldrdata.jar:/SootTest/src:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/localedata.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/java-atk-wrapper.jar::/home/wei/kepler-workspace/SootTest/src:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/resources.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/rt.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jsse.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jce.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/charsets.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/jaccess.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/zipfs.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/cldrdata.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/dnsns.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/localedata.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/java-atk-wrapper.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/nashorn.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/sunec.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/icedtea-sound.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/sunjce_provider.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/sunpkcs11.jar
--d /home/wei/kepler-workspace/SootTest/sootOutput A <br>
Soot started on Mon May 13 21:20:43 SGT 2019<br>
Unknown tag in constant pool: 16 at entry 866<br>
java.lang.reflect.InvocationTargetException<br>
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)<br>
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)<br>
at java.lang.reflect.Method.invoke(Method.java:498)<br>
at ca.mcgill.sable.soot.launching.SootThread.run(SootThread.java:138)<br>
Caused by: java.lang.RuntimeException: Could not load classfile: java.io.ObjectInputStream<br>
at soot.coffi.Util.resolveFromClassFile(Util.java:75)<br>
at soot.CoffiClassSource.resolve(CoffiClassSource.java:39)<br>
at soot.SootResolver.bringToHierarchy(SootResolver.java:215)<br>
at soot.SootResolver.processResolveWorklist(SootResolver.java:155)<br>
at soot.SootResolver.resolveClass(SootResolver.java:124)<br>
at soot.Scene.tryLoadClass(Scene.java:417)<br>
at soot.Scene.loadBasicClasses(Scene.java:990)<br>
at soot.Scene.loadNecessaryClasses(Scene.java:1061)<br>
at soot.Main.run(Main.java:167)<br>
at soot.Main.main(Main.java:141)<br>
... 5 more</font></p>
<p><font face="Times New Roman, Times, serif">It seems to say it cannot load a java classfile called
</font><font face="Times
New Roman, Times, serif"><font face="Courier New, Courier,
monospace">java.io.ObjectInputStream</font>. I doubt that the problem stems from my Java installation as I could process via command-line. Below is the output
of <font face="Courier New,
Courier, monospace">java -version</font> from my Ubuntu 18.04 machine.</font></p>
<p><font face="Times New Roman, Times, serif"><font face="Courier
New, Courier, monospace">openjdk version "1.8.0_191"<br>
OpenJDK Runtime Environment (build 1.8.0_191-8u191-b12-2ubuntu0.18.04.1-b12)<br>
OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)</font><br>
</font></p>
<p><font face="Times New Roman, Times, serif">Thank you!<br>
</font></p>
<p><font face="Times New Roman, Times, serif">Regards,</font></p>
<font face="Times New Roman, Times, serif">Wei Minn</font>
</body>
</html>