Getting started with EasyXLS - Excel Library for Java: Step 1: Download EasyXLS. Download the trial version of EasyXLS Excel Library for Java from this link: If you already own a license key, you may login to the account that purchased the license and download EasyXLS. Java version to read and import Excel files Java Express Excel Writer. Figure: MS-Excel file “d:Contact.xls” from server is prompt for user to download, with a new me excel file name “contact_excel_file.xls” Download SourceCode Download excel file from JAX-RS.zip.
Pages: Go to 1 2 3FreewareMaciPhone | Size | Type | Added | |
| 1.3 MB | shareware | 13 February, 2009 | |
| 5.1 MB | shareware | 25 August, 2014 | |
| 2.5 MB | shareware | 10 November, 2008 | |
| 1.5 MB | shareware | 09 March, 2016 | |
| 1.5 MB | shareware | 05 March, 2008 | |
| 1.9 MB | shareware | 06 April, 2013 | |
| 797.0 KB | shareware | 22 March, 2013 | |
| 6.1 MB | shareware | 21 January, 2013 | |
| 2.3 MB | shareware | 20 October, 2014 | |
| 1.9 MB | freeware | 13 February, 2009 | |
| 1.3 MB | shareware | 04 July, 2009 | |
| 1.5 MB | shareware | 22 September, 2012 | |
| 5.4 MB | shareware | 24 March, 2013 | |
| 2.3 MB | shareware | 01 April, 2013 | |
| 921.6 KB | shareware | 05 August, 2013 | |
Pages: Go to 1 2 3 |
- Example of downloading file from the server in servlet. You can direct provide a link to that file. So there is no need to write the program to download. But if there is any java file or jsp file etc, you need to create a program to download that file. JavaTpoint offers college campus training on Core Java, Advance Java,.Net, Android.
- Excel is the very popular file format created by Microsoft. Although it is not an opened file format, Java applications can still read and write Excel files using the Apache POI - the Java API for Microsoft Documents, because the development team uses reverse.
- dotConnect for Magento
2 downloads - UDB Workbench
369 downloads - dotConnect for BigCommerce
2 downloads - dotConnect for MailChimp
2 downloads - dotConnect for FreshBooks
2 downloads - DMS-Shuttle
24 downloads - DataNumen Office Repair
116 downloads - SliQ Invoicing
7 downloads - SDiPEC
8 downloads - Combine PDF
18 downloads - Aiseesoft Data Recovery
1 downloads - Hasleo Data Recovery Free
75 downloads - Handy Backup Standard
56 downloads - Apeaksoft Android Data Recovery for Mac
15 downloads - SoftPerfect Bandwidth Manager
360 downloads
- FullRecall
3871 downloads - Outlook Export Wizard
3573 downloads - SugarSync Manager
4608 downloads - Belarc Advisor
3260 downloads - Cobian Backup
3418 downloads - Samsung Kies
3484 downloads - Camfrog
5421 downloads - EaseUS Partition Master
3296 downloads - SUPERAntiSpyware
4003 downloads - PeerBlock
3862 downloads - SUMo
3587 downloads - Turbo Pascal
4028 downloads
The open source community has created many open source Java projects, which range from charting software to game frameworks to word processors. In this post, I introduce an open source library project for reading and writing Microsoft Excel spreadsheets.
Recommending a spreadsheet library
Q: I've been asked to extend my company's Java-based spreadsheet software to read and write Excel spreadsheets. Can you recommend an open source Java library that will help me with this task?
A: You might want to check out JExcelAPI, which is a mature, Java-based open source library that lets you read, write, and modify Excel spreadsheets. Here are a few of its many features:
- Reads data from Excel 95, 97, 2000, XP, and 2003 workbooks
- Reads and writes formulas (Excel 97 and later only)
- Generates spreadsheets in Excel 2000 format
- Supports font, number, and date formatting
- Supports cell shading, cell bordering, and cell coloring
- Modifies existing worksheets
- Supports chart copying
- Supports the insertion and copying of images into spreadsheets
JExcelAPI was developed by Andrew Kahn and was released under the GNU Lesser General Public License.
Downloading the JExcelAPI library
Q: How do I download JExcelAPI?
A: Complete the following steps to download JExcelAPI:
- Point your browser to JExcelAPI's SourceForge site.
- Click the
jexcelapi
link. - On the resulting page, click one of the folder links. For example, I clicked the
2.6.12
link. - On the resulting page, click the distribution archive filename. For example, I clicked the
jexcelapi_2_6_12.zip
link. - After a short delay, your browser should prompt you to save this file. Go ahead and save the file.
Following the download, unarchive this file. You should observe a jexcelapi
home directory within a jexcelapi_2_6_12
directory.
Demonstrating the JExcelAPI library
Q: Does the JExcelAPI library contain any demos?
A: JExcelAPI's jexcelapi
home directory contains a jxl.jar
file that contains demos for reading, writing, and copying spreadsheets.
The read demo reads an existing spreadsheet, converting it to comma-separated value (CSV) or XML format via the -csv
or -xml
command-line option. Consider the following examples:
Java Excel Library
These examples read budget.xls
and output its contents in CSV and XML format to standard output. When neither -csv
nor -xml
is specified, -csv
is assumed.
The write demo creates a sample spreadsheet that includes formulae, borders, images, and more. This spreadsheet is generated by specifying the -write
command-line option, as demonstrated below:
Figure 1 shows part of the resulting sample.xls
spreadsheet.
Figure 1. I used LibreOffice Calc to access the sample.xls spreadsheet
The copy demo copies sample spreadsheet jxlrwtest.xls
, which is stored in the same directory as jxl.jar
, to a new spreadsheet. In the resulting spreadsheet, the first sheet (original) is unchanged whereas the second sheet (modified) contains modified values.
This demo is generated by specifying the -rw
command-line option followed by jxlrwtest.xls
and the name of the output spreadsheet. Consider the following command line:
This command line copies jxlrwtest.xls
to copy.xls
. Figure 2 shows the second (modified) sheet in LibreOffice Calc.
Figure 2. Click the original and modified tabs to view the original and modified sheets
Including JExcelAPI for compilation and execution
Q: How do I include JExcelAPI when compiling source code and running an application?
A: To include JExcelAPI when compiling source code and running an application, do one of the following:
- Add the
jexcelapi
home directory'sjxl.jar
file to yourCLASSPATH
environment variable. - Include
jxl.jar
via thejavac
andjava
program's-cp
command-line option.
Programming with JExcelAPI
Q: How do I create Java programs that leverage JExcelAPI?
A: The jexcelapi
home directory includes a tutorial.html
file that presents a basic tutorial on programming with JExcelAPI. The tutorial shows you how to read, write, and copy spreadsheets. The tutorial also discusses formatting.
jexcelapi
also includes a docs
subdirectory, which provides access to extensive API documentation. Point your Web browser to this directory's index.html
file and you can explore the types in this library's four documented packages:
jxl
: the main package's typesjxl.demo
: types for the various demosjxl.format
: types related to formattingjxl.write
: types for writing to a spreadsheet
Note that this list isn't exhaustive. Additional packages such as jxl.read
are present but are not documented. To learn about additional packages, execute jar tvf jxl.jar
and examine the package information in the resulting JAR listing.
To help you get started with JExcelAPI, I've created a simple JExcelAPIDemo
application that demonstrates creating a new spreadsheet that is saved in output.xls
and then reading and outputting the contents of this spreadsheet. Check out Listing 1.
Listing 1. Writing and reading a simple spreadsheet
Listing 1 first creates a writable workbook by invoking one of Workbook
's factory methods. A writable sheet is then created for this workbook, and then a label and a number are added as the sheet's two cell values. The workbook is then written and closed.
Listing 1 continues by getting a workbook associated with output.xls
and reading its contents. The getSheet()
method provides access to the first sheet within this workbook. Its getCell()
method is called to access the two cells, whose contents are then output.
Assuming that jxl.jar
is located in the current directory, execute the following command to compile Listing 1:
Assuming success, execute the following command to run JExcelAPIDemo
:
Download Excel File In Java Free
You should observe the following output:
Figure 3 shows you output.xls
in a LibreOffice context.
Figure 3. The solitary sheet displays two cell values
What's next?
Next time, I present a set of puzzlers that address the evolution of Java libraries. These puzzlers focus on source and binary code compatibility between client programs and the libraries that these programs use.
downloadThe following software was used to develop the post's code:
- 64-bit JDK 7u6
- JExcelAPI 2.6.12
The post's code was tested on the following platform(s):
- JVM on 64-bit Windows 7 SP1