File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Reading an Excel file using Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Reading an Excel file using Java" Watch "Reading an Excel file using Java" New topic

Reading an Excel file using Java

Sathish Mandapaka

Joined: Dec 15, 2005
Posts: 7
Hi people,
I wanted to know if there is any way to read data from an Excel spread sheet by using Java code and doing some function such as sending a mail depending upon the data which is read from the file.
I wish to write an application but am stuck up at how to start it up.PLease do help me in this issue.

Thanks and Regards,
Sathish Mandapaka
Rajasekar Elango
Ranch Hand

Joined: Sep 13, 2004
Posts: 105
You could do it using jdbc..

you should create data source for excel driver named readxl before running this program

SCJP 1.4
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
There are libraries that can read Excel files (Jakarta POI and jExcelAPI), and for sending mail you'd use the JavaMail API.

The ODBC route suggested in the previous post only works on Windows.
Srinivasa Raghavan
Ranch Hand

Joined: Sep 28, 2004
Posts: 1228
No cross post

Thanks & regards, Srini
MCP, SCJP-1.4, NCFM (Financial Markets), Oracle 9i - SQL ( 1Z0-007 ), ITIL Certified
payal agrawal
Ranch Hand

Joined: Oct 11, 2005
Posts: 44
Look at the URL below;

Reading data from Excel documents at runtime
I agree. Here's the link:
subject: Reading an Excel file using Java
It's not a secret anymore!