Below is the Code :
//imports
import org.apache.poi.hssf.usermodel.HSSFRow;
import org.apache.poi.hssf.usermodel.HSSFSheet;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.hssf.util.HSSFColor;
import org.apache.poi.poifs.filesystem.POIFSFileSystem;
try{
// Creating Input Stream
InputStream myInput = context.getAssets().open(filename);
POIFSFileSystem myFileSystem = new POIFSFileSystem(myInput);
// Create a workbook using the File System
HSSFWorkbook myWorkBook = new HSSFWorkbook(myFileSystem);
// Get the first sheet from workbook
HSSFSheet mySheet = myWorkBook.getSheetAt(0);
// u能請幫我出了什麼錯呢。我已經在Eclipse的Java Build路徑的庫中包含了各自的jar文件。E/dalvikvm(786):找不到類「org.apache.poi.poifs.filesystem.POIFSFileSystem」在機器人活動
在此先感謝
這是所有的代碼是完整的嗎?類聲明在哪裏? – Reimeus
不,這不是完整的代碼,只是粘貼導致異常的相關代碼片段。 – user3169148