2

When creating an excel file from java do i need office installed on my system?

I think java using its API must be able to create the .xls or .xlsx file. We will just not be able to open it?

If anyone know the answer please let me know.

Vikram
  • 21
  • 6
  • Just try and you got your answer and update others. why r u asking such question when u able to find the answer. its your habit ? – gifpif Apr 03 '14 at 04:46
  • 1
    `.xls` or `.xlsx` will be created fine, but you will not be able to open them without office. – Aashray Apr 03 '14 at 04:46
  • 1
    you can create every file you want to. For Microsoft documents I would recommend using `Apache POI`. http://poi.apache.org/ – Markus Apr 03 '14 at 05:10

1 Answers1

1

You don't need Excel application to create a .xls or .xlsx file using Java. However, to open the created file, you will need Microsoft Excel or LibreOffice Calc package.

You can use JXLS for creating a simple Excel sheet which is easy to use. This uses Apache POI in the backend. For very complex reports, Apache POI is preferred though, since Performance issues creep up in JXLS.

Rajkumar
  • 345
  • 6
  • 22