[Soot-list] Exception: class * read in from a classfile in which * was expected

Eric Bodden eric.bodden at ec-spride.de
Mon Jul 9 02:52:55 EDT 2012


Hi Tina.

I think you want to replace C:\\Users\\tina\\Desktop\\
DodoWaterFall\\DodoWaterFall\\bin\\classes\\com\\dodowaterfall by
C:\\Users\\tina\\Desktop\\DodoWaterFall\\DodoWaterFall\\bin\\classes.

Eric

On 8 July 2012 05:55, tina <heyetina at 163.com> wrote:

> Hi,****
>
>          I wrote a soot program to do control flow analysis of an android
> program, I already add the external jar file to classpath. When I run it
> ,it show the exception info:****
>
> Exception in thread "main" *java.lang.RuntimeException*: Error: class
> com.dodowaterfall.BitmapCache$BtimapRef read in from a classfile in which
> BitmapCache$BtimapRef was expected.****
>
>          What does this info mean?****
>
> ** **
>
>          The command line includes:****
>
>                    int size = 10;****
>
>                    String[] args = new String[size];****
>
>                    args[0] = "-cp";****
>
>                    args[1] = "~
> DodoWaterFall\\bin\\classes\\com\\dodowaterfall;~\android-sdks\\platforms\\android-15\\android.jar;~\Java\\jdk1.6.0_33\\jre\\lib\\rt.jar;"
> ****
>
>
> "~\Java\\jdk1.6.0_33\\jre\\lib\\jce.jar";// target class path****
>
>                    args[2] = "-process-path";****
>
>                    args[3] =
> "C:\\Users\\tina\\Desktop\\DodoWaterFall\\DodoWaterFall\\bin\\classes\\com\\dodowaterfall";
> ****
>
>                    args[4] = "-main-class";****
>
>                    args[5] = "MainActivity";// target class****
>
>                    args[6] = "-src-prec";****
>
>                    args[7] = "java";****
>
>                    args[8] = "-app";****
>
>                    args[9] = "-interactive-mode";****
>
>                    soot.Main.main(args);****
>
> ** **
>
> The target class:****
>
> public class MainActivity extends Activity {****
>
>          private LazyScrollView waterfall_scroll;****
>
>          private LinearLayout waterfall_container;****
>
>          private ArrayList<LinearLayout> waterfall_items;****
>
>          private Display display;****
>
>          private AssetManager assetManager;****
>
>          private List<String> image_filenames;****
>
>          private final String image_path = "images";****
>
>          private int itemWidth;****
>
>          private int column_count = 3; ****
>
>          private int page_count = 15;****
>
>          private int current_page = 0;****
>
> ** **
>
>          @Override****
>
>          public void onCreate(Bundle savedInstanceState) {****
>
>                    super.onCreate(savedInstanceState);****
>
>                    setContentView(R.layout.main);****
>
>                    display = this.getWindowManager().getDefaultDisplay();*
> ***
>
>                    itemWidth = display.getWidth( ) /
> column_count;           assetManager = this.getAssets();****
>
>                    InitLayout();****
>
>          }****
>
> The android program include these classes:****
>
> ****
>
> ** **
>
> regards****
>
> ** **
>
> Tina****
>
> ** **
>
> _______________________________________________
> Soot-list mailing list
> Soot-list at sable.mcgill.ca
> http://mailman.cs.mcgill.ca/mailman/listinfo/soot-list
>
>


-- 
Eric Bodden, Ph.D., http://bodden.de/
Head of Secure Software Engineering Group at EC SPRIDE
Principal Investigator in Secure Services at CASED
Tel: +49 6151 16-75422    Fax: +49 6151 16-72051
Room 3.2.14, Mornewegstr. 30, 64293 Darmstadt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.cs.mcgill.ca/pipermail/soot-list/attachments/20120709/016fab4d/attachment-0001.html 


More information about the Soot-list mailing list