Results 1 to 2 of 2
  1. #1
    suvarna_deo is offline Member
    Join Date
    Jul 2013
    Posts
    1
    Rep Power
    0

    Default Error while compiling excel file in linux

    Hiiii.....


    I have download Apache POI-src-3.9-2012203.tar.gz. I create a file in java & include poi packages but i have got errors when i compiled the file.Errors are listed below:-
    ReadExcelFile.java:7: error: package org.apache.poi.hssf.usermodel does not exist
    import org.apache.poi.hssf.usermodel.HSSFCell;
    ^
    ReadExcelFile.java:8: error: package org.apache.poi.hssf.usermodel does not exist
    import org.apache.poi.hssf.usermodel.HSSFRow;
    ^
    ReadExcelFile.java:9: error: package org.apache.poi.hssf.usermodel does not exist
    import org.apache.poi.hssf.usermodel.HSSFSheet;
    ^
    ReadExcelFile.java:10: error: package org.apache.poi.hssf.usermodel does not exist
    import org.apache.poi.hssf.usermodel.HSSFWorkbook;
    ^
    ReadExcelFile.java:11: error: package org.apache.poi.poifs.filesystem does not exist
    import org.apache.poi.poifs.filesystem.POIFSFileSystem;
    ^
    ReadExcelFile.java:36: error: cannot find symbol
    POIFSFileSystem myFileSystem = new POIFSFileSystem(myInput);
    ^
    symbol: class POIFSFileSystem
    location: class ReadExcelFile
    ReadExcelFile.java:36: error: cannot find symbol
    POIFSFileSystem myFileSystem = new POIFSFileSystem(myInput);
    ^
    symbol: class POIFSFileSystem
    location: class ReadExcelFile
    ReadExcelFile.java:39: error: cannot find symbol
    HSSFWorkbook myWorkBook = new HSSFWorkbook(myFileSystem);
    ^
    symbol: class HSSFWorkbook
    location: class ReadExcelFile
    ReadExcelFile.java:39: error: cannot find symbol
    HSSFWorkbook myWorkBook = new HSSFWorkbook(myFileSystem);
    ^
    symbol: class HSSFWorkbook
    location: class ReadExcelFile
    ReadExcelFile.java:42: error: cannot find symbol
    HSSFSheet mySheet = myWorkBook.getSheetAt(0);
    ^
    symbol: class HSSFSheet
    location: class ReadExcelFile
    ReadExcelFile.java:48: error: cannot find symbol
    HSSFRow myRow = (HSSFRow) rowIter.next();
    ^
    symbol: class HSSFRow
    location: class ReadExcelFile
    ReadExcelFile.java:48: error: cannot find symbol
    HSSFRow myRow = (HSSFRow) rowIter.next();
    ^
    symbol: class HSSFRow
    location: class ReadExcelFile
    ReadExcelFile.java:52: error: cannot find symbol
    HSSFCell myCell = (HSSFCell) cellIter.next();
    ^
    symbol: class HSSFCell
    location: class ReadExcelFile
    ReadExcelFile.java:52: error: cannot find symbol
    HSSFCell myCell = (HSSFCell) cellIter.next();
    ^
    symbol: class HSSFCell
    location: class ReadExcelFile
    ReadExcelFile.java:66: error: cannot find symbol
    HSSFCell myCell = (HSSFCell)cellStoreVector.elementAt(j);
    ^
    symbol: class HSSFCell
    location: class ReadExcelFile
    ReadExcelFile.java:66: error: cannot find symbol
    HSSFCell myCell = (HSSFCell)cellStoreVector.elementAt(j);
    ^
    symbol: class HSSFCell
    location: class ReadExcelFile


    please help....

  2. #2
    PhHein's Avatar
    PhHein is offline Senior Member
    Join Date
    Apr 2009
    Location
    Germany
    Posts
    1,430
    Rep Power
    7

    Default Re: Error while compiling excel file in linux

    You need the binaries. Extract the arrchive and add poi-3.9-20121203.jar to the classpath.
    Math problems? Call 1-800-[(10x)(13i)^2]-[sin(xy)/2.362x]
    The Ubiquitous Newbie Tips

Similar Threads

  1. Linux running/compiling from Command Line?
    By arcelivez in forum New To Java
    Replies: 4
    Last Post: 01-27-2012, 11:10 PM
  2. error when compiling a file
    By ProfessionalGold in forum New To Java
    Replies: 1
    Last Post: 12-29-2011, 06:57 PM
  3. Excel file read error
    By Asvin in forum New To Java
    Replies: 10
    Last Post: 04-28-2011, 10:01 PM
  4. Compiling error
    By lawksalih in forum New To Java
    Replies: 6
    Last Post: 01-29-2008, 07:26 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •