1

我的库 jar 文件在 Eclipse 中无法运行,但在 Net-Beans 中运行良好,我很累,但它显示

07-05 17:34:09.064: E/AndroidRuntime(560): java.lang.NoClassDefFoundError: fi.joensuu.joyds1.calendar.IslamicCalendar

任何建议都可以接受

4

1 回答 1

0

From Android Latest Version of sdk we must place external jar files in a folder called libs.

  1. create a new folder in the project named libs
  2. place your external jar file in that folder
  3. no need to give the path to the project in eclipse. It will automatically exists

Good luck

EDIT

You will need to add the library to your build path. You can do this by right clicking it in Package Explorer and selecting add to build path, or by editing the build settings manually.

于 2012-07-20T11:41:14.010 回答