您的位置:首页 > 编程语言 > Java开发

java.lang.NoClassDefFoundError: jxl.Workbook错误的解决

2015-11-26 10:28 531 查看
今天做android读取excel 使用到了jxl包

选定工程->右键属性->Java Build Path->Add External Jars->选定你下载的Jar包的位置

运行报错:

01-20 14:35:10.184: E/AndroidRuntime(886): java.lang.NoClassDefFoundError: jxl.Workbook


解决方案:

在Order and Export 勾选



Order and Export

1、Determine in which order projects and libraries appear in the classpath. If there are any duplicate classes, this determines which version is loaded

2、Determine which projects and libraries will be exported and thus available in other projects that depend on this one.

Order and Export tab

In the Build class path order list, you can click the Up and Down buttons to move the selected path entry up or down in the build path order for this new project.

Checked list entries are marked as exported. Exported entries are visible to projects that require the project. Use the Select All and Deselect All to change the checked state of all entries. Source folders are always exported, and can not be deselected.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: