[Soot-list] Exception in thread "main" java.lang.RuntimeException: There is no main class set!

Marc-André Laverdière-Papineau marc-andre.laverdiere-papineau at polymtl.ca
Tue Sep 25 07:27:55 EDT 2012


Soot wasn't designed for that, but it is still flexible enough to make it 
happen.

If you don't have a main method, you can use a hack to set your custom entry 
points, which Eric Bodden has put on his blog:
http://www.bodden.de/2012/07/26/soot-custom-entry-points/

Another option is to use my patched-up version of Soot, but keep in mind 
that it needs more testing. You may hit bugs, but please report them :)
https://github.com/malaverdiere/soot
The advantage of that one is that it is designed with entry point detectors, 
so that you don't need an a-priori knowledge of the entry points. Have a 
policy of what entry points you care about, throw your code at it, let magic 
happen :D
Also, the implementation is based on strings right now, which makes 
detection slower than it should be. Soot has some magic way of mapping 
signatures and subsignatures to numbers that I didn't get around to leverage 
yet.


-- 
Marc-André Laverdière-Papineau
Étudiant au doctorat - PhD Student
-----Original Message----- 
From: Quentin Sabah
Sent: Tuesday, September 25, 2012 5:00 AM
To: soot-list at sable.mcgill.ca
Subject: Re: [Soot-list] Exception in thread "main" 
java.lang.RuntimeException: There is no main class set!

To be more specific, soot will look for the main class / entry-point
*before* running your scene transformer. So it is too late to set the
scene entry-point during the transformation, as in your code.

-- 
Quentin Sabah, CIFRE Ph.D. student
Grenoble University
INRIA-SARDES                   | STMicroelectronics/AST
Montbonnot, France             | Grenoble, France
mailto:quentin.sabah at inria.fr  | mailto:quentin.sabah at st.com
phone: +33 476 61 54 57        | phone: +33 476 58 44 14
_______________________________________________
Soot-list mailing list
Soot-list at sable.mcgill.ca
http://mailman.cs.mcgill.ca/mailman/listinfo/soot-list 



More information about the Soot-list mailing list