[Soot-list] java.lang.NoSuchMethodError: soot.options.Options.set_android_jars

Modo Modo amaximum007 at yahoo.com
Tue May 30 14:45:32 EDT 2017


This is true. I had to install a plugin that runs allows Kepler to run 1.8 so now everything is at 1.8. The errors are gone however when I run soot, there is no output. I right click my java file (MyMain.java) and run soot and enter the class "MyMain" and the project folder. I leave the input options as is which is: 

On Tuesday, May 30, 2017, 2:38:21 PM GMT+2, Arzt, Steven <steven.arzt at sit.fraunhofer.de> wrote:#yiv7074280885 #yiv7074280885 -- _filtered #yiv7074280885 {font-family:Helvetica;panose-1:2 11 6 4 2 2 2 2 2 4;} _filtered #yiv7074280885 {panose-1:2 4 5 3 5 4 6 3 2 4;} _filtered #yiv7074280885 {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;}#yiv7074280885 #yiv7074280885 p.yiv7074280885MsoNormal, #yiv7074280885 li.yiv7074280885MsoNormal, #yiv7074280885 div.yiv7074280885MsoNormal {margin:0in;margin-bottom:.0001pt;font-size:12.0pt;}#yiv7074280885 a:link, #yiv7074280885 span.yiv7074280885MsoHyperlink {color:blue;text-decoration:underline;}#yiv7074280885 a:visited, #yiv7074280885 span.yiv7074280885MsoHyperlinkFollowed {color:purple;text-decoration:underline;}#yiv7074280885 p.yiv7074280885msonormal0, #yiv7074280885 li.yiv7074280885msonormal0, #yiv7074280885 div.yiv7074280885msonormal0 {margin-right:0in;margin-left:0in;font-size:12.0pt;}#yiv7074280885 p.yiv7074280885msonormal0, #yiv7074280885 li.yiv7074280885msonormal0, #yiv7074280885 div.yiv7074280885msonormal0 {margin-right:0in;margin-left:0in;font-size:12.0pt;}#yiv7074280885 p.yiv7074280885ydpb8138040p1, #yiv7074280885 li.yiv7074280885ydpb8138040p1, #yiv7074280885 div.yiv7074280885ydpb8138040p1 {margin-right:0in;margin-left:0in;font-size:12.0pt;}#yiv7074280885 p.yiv7074280885ydpb8138040p2, #yiv7074280885 li.yiv7074280885ydpb8138040p2, #yiv7074280885 div.yiv7074280885ydpb8138040p2 {margin-right:0in;margin-left:0in;font-size:12.0pt;}#yiv7074280885 p.yiv7074280885ydpb8138040p4, #yiv7074280885 li.yiv7074280885ydpb8138040p4, #yiv7074280885 div.yiv7074280885ydpb8138040p4 {margin-right:0in;margin-left:0in;font-size:12.0pt;}#yiv7074280885 p.yiv7074280885ydpb8138040p3, #yiv7074280885 li.yiv7074280885ydpb8138040p3, #yiv7074280885 div.yiv7074280885ydpb8138040p3 {margin-right:0in;margin-left:0in;font-size:12.0pt;}#yiv7074280885 p.yiv7074280885ydp61fe1484p1, #yiv7074280885 li.yiv7074280885ydp61fe1484p1, #yiv7074280885 div.yiv7074280885ydp61fe1484p1 {margin-right:0in;margin-left:0in;font-size:12.0pt;}#yiv7074280885 p.yiv7074280885msonormal, #yiv7074280885 li.yiv7074280885msonormal, #yiv7074280885 div.yiv7074280885msonormal {margin-right:0in;margin-left:0in;font-size:12.0pt;}#yiv7074280885 p.yiv7074280885msochpdefault, #yiv7074280885 li.yiv7074280885msochpdefault, #yiv7074280885 div.yiv7074280885msochpdefault {margin-right:0in;margin-left:0in;font-size:12.0pt;}#yiv7074280885 span.yiv7074280885msohyperlink {}#yiv7074280885 span.yiv7074280885msohyperlinkfollowed {}#yiv7074280885 span.yiv7074280885emailstyle30 {}#yiv7074280885 p.yiv7074280885msonormal1, #yiv7074280885 li.yiv7074280885msonormal1, #yiv7074280885 div.yiv7074280885msonormal1 {margin:0in;margin-bottom:.0001pt;font-size:12.0pt;}#yiv7074280885 span.yiv7074280885msohyperlink1 {color:#0563C1;text-decoration:underline;}#yiv7074280885 span.yiv7074280885msohyperlinkfollowed1 {color:#954F72;text-decoration:underline;}#yiv7074280885 p.yiv7074280885msonormal01, #yiv7074280885 li.yiv7074280885msonormal01, #yiv7074280885 div.yiv7074280885msonormal01 {margin-right:0in;margin-left:0in;font-size:12.0pt;}#yiv7074280885 p.yiv7074280885ydpb8138040p11, #yiv7074280885 li.yiv7074280885ydpb8138040p11, #yiv7074280885 div.yiv7074280885ydpb8138040p11 {margin-right:0in;margin-left:0in;font-size:12.0pt;}#yiv7074280885 p.yiv7074280885ydpb8138040p21, #yiv7074280885 li.yiv7074280885ydpb8138040p21, #yiv7074280885 div.yiv7074280885ydpb8138040p21 {margin-right:0in;margin-left:0in;font-size:12.0pt;}#yiv7074280885 p.yiv7074280885ydpb8138040p41, #yiv7074280885 li.yiv7074280885ydpb8138040p41, #yiv7074280885 div.yiv7074280885ydpb8138040p41 {margin-right:0in;margin-left:0in;font-size:12.0pt;}#yiv7074280885 p.yiv7074280885ydpb8138040p31, #yiv7074280885 li.yiv7074280885ydpb8138040p31, #yiv7074280885 div.yiv7074280885ydpb8138040p31 {margin-right:0in;margin-left:0in;font-size:12.0pt;}#yiv7074280885 p.yiv7074280885ydp61fe1484p11, #yiv7074280885 li.yiv7074280885ydp61fe1484p11, #yiv7074280885 div.yiv7074280885ydp61fe1484p11 {margin-right:0in;margin-left:0in;font-size:12.0pt;}#yiv7074280885 span.yiv7074280885emailstyle301 {color:#1F497D;}#yiv7074280885 p.yiv7074280885msochpdefault1, #yiv7074280885 li.yiv7074280885msochpdefault1, #yiv7074280885 div.yiv7074280885msochpdefault1 {margin-right:0in;margin-left:0in;font-size:10.0pt;}#yiv7074280885 span.yiv7074280885ydpb8138040s1 {}#yiv7074280885 span.yiv7074280885ydpb8138040s2 {}#yiv7074280885 span.yiv7074280885ydpb8138040s3 {}#yiv7074280885 span.yiv7074280885ydpb8138040s6 {}#yiv7074280885 span.yiv7074280885ydpb8138040apple-converted-space {}#yiv7074280885 span.yiv7074280885ydpb8138040s5 {}#yiv7074280885 span.yiv7074280885EmailStyle46 {color:#1F497D;}#yiv7074280885 .yiv7074280885MsoChpDefault {font-size:10.0pt;} _filtered #yiv7074280885 {margin:1.0in 1.0in 1.0in 1.0in;}#yiv7074280885 div.yiv7074280885WordSection1 {}#yiv7074280885 
Hi,
 
  
 
The message “Unsupported major.minor version” directly means that your JDK is not able to parse the class files, because the class files use a format that is never than everything that is supported by your JVM. Please double-check your build configuration in Eclipse to make sure that you’re not accidentally using an outdated JVM version.
 
  
 
The NoSuchMethodError means that the JVM is unable to locate the given method, but was apparently able to load that class is that is supposed to contain it. Since the method is part of Soot, I guess you are using an outdated version of Soot as well. Please make sure to use either a version compiled from the current “develop” branch or a nightly build. Do not use the 2.5 release version of Soot, that’s much too old.
 
  
 
Best regards,
 
  Steven
 
  
 
From: Modo Modo [mailto:amaximum007 at yahoo.com]
Sent: Monday, May 29, 2017 10:55 PM
To: Arzt, Steven <steven.arzt at sit.fraunhofer.de>; soot-list-owner at cs.mcgill.ca; soot-list at cs.mcgill.ca
Subject: Re: RE: java.lang.NoSuchMethodError: soot.options.Options.set_android_jars
 
  
 
  
 
Eclipse JDK is at 8 and the project's also.
 
On Monday, May 29, 2017, 3:50:03 PM GMT+2, Arzt, Steven <steven.arzt at sit.fraunhofer.de> wrote:
 
Hi,
 
 
 
Your Java version is apparently too old. Please make sure to run the program with Java 8.
 
 
 
Best regards,
 
  Steven
 
 
 
From: Soot-list [mailto:mailman-bounces at cs.mcgill.ca]On Behalf Of Modo Modo
Sent: Monday, May 29, 2017 1:59 PM
To: soot-list-owner at cs.mcgill.ca
Subject: java.lang.NoSuchMethodError: soot.options.Options.set_android_jars
 
 
 
Hello,
 
 
 
I'm attempting to use Soot with eclipse to analyze android apks. Unfortunately I get a few errors and could not find much information on this. Code:
 
 
 
File appAPK =new File("../input/app-debug.apk");
 
Filesinks =new File("../lib/SourcesAndSinks.txt");
 
File androidJars =new File("lib/android-platforms/android-17");
 
soot.G.reset();
 
SetupApplication setupApplication = new SetupApplication(androidJars.toString(), appAPK.toString()); 
 
setupApplication.calculateSourcesSinksEntrypoints(sinks.toString());
 
Options.v().set_android_jars(androidJars.toString());
 
Options.v().set_src_prec(Options.src_prec_apk); 
 
Options.v().set_process_dir(Collections.singletonList(appAPK.toString())); 
 
Options.v().set_whole_program(true);
 
Options.v().set_allow_phantom_refs(true);
 
Options.v().set_output_format(Options.output_format_none);
 
Options.v().setPhaseOption("cg.spark","on");
 
Options.v().set_no_bodies_for_excluded(false);
 
Options.v().set_exclude(null);
 
Scene.v().loadNecessaryClasses();
 
 
 
I get: 
 
With setupapplication:
 
Caused by: java.lang.UnsupportedClassVersionError: soot/jimple/infoflow/android/SetupApplication : Unsupported major.minor version 51.0
 
 
 
With set_android_jars:
 
Caused by: java.lang.NoSuchMethodError: soot.options.Options.set_android_jars(Ljava/lang/String;)V
 
at MyMain.main(MyMain.java:66)
 
 
 
 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.CS.McGill.CA/pipermail/soot-list/attachments/20170530/0ac723de/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2017-05-30 at 2.39.59 PM.png
Type: image/png
Size: 142355 bytes
Desc: not available
URL: <https://mailman.CS.McGill.CA/pipermail/soot-list/attachments/20170530/0ac723de/attachment-0001.png>


More information about the Soot-list mailing list