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

Arzt, Steven steven.arzt at sit.fraunhofer.de
Tue May 30 08:38:03 EDT 2017


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<mailto: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<mailto: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");

File sinks = 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/ccd8a171/attachment-0001.html>


More information about the Soot-list mailing list