hey... i finally solved my excel problem... but just kind of... i have to do it with a package, which i managed to get, but my problem ist now, that my programm is not finding the path or sth like this, this is my code:
import java.io.File;
import jexcelapi.src.jxl.Cell;
import jexcelapi.src.jxl.Sheet;
import jexcelapi.src.jxl.Workbook;
import jexcelapi.src.jxl.read.biff.*;
public class Excel
{
public static void main(String[] args)
{
Workbook workbook = Workbook.getWorkbook(new File("//Volumes//ws.xls"));
Sheet sheet = workbook.getSheet(0);
Cell a1 = sheet.getCell(0,0);
Cell b2 = sheet.getCell(1,1);
Cell c2 = sheet.getCell(2,1);
String stringa1 = a1.getContents();
String stringb2 = b2.getContents();
String stringc2 = c2.getContents();
}
}
and the problem is, that it is not accepting my get.Workbook, it is always telling me that i am referring to a not existing BiffException, but apparently it is in my package and if i am writing import jexcelapi.src.jxl.read.biff.BiffException; instead of import jexcelapi.src.jxl.read.biff.*; it is telling me the folowing error mistake:
The archive: /neu/E:/usr/local/woodstock/jexcelapi/2_4_3/jxl.jar which is referenced by the classpath does not exist
i really have no idea what to do with it, so can anyone explain it to me...
little_polarbear
