Create Password Protected Excel Using Apache POI

In the previous tutorials we saw how to read and write Excel files using the Apache POI library. In this tutorial we will see how to create password protected excel using Apache POI.

There are 2 types of password protections offered in Excel:
Continue reading “Create Password Protected Excel Using Apache POI”

Write to XLSX file in Java Using Apache POI

In this tutorial, we will see how to Write to XLSX file in Java Using Apache POI.

Java source to Write to XLSX file in Java Using Apache POI :

Continue reading “Write to XLSX file in Java Using Apache POI”

Read XLSX file in Java using Apache POI

In this tutorial we will try to read XLSX file in Java using Apache POI. Here is the Excel file we will be reading:

Read XLSX file in Java using Apache POI

Read XLSX file in Java using Apache POI

For this tutorial, make sure you download the latest version of Apache POI and place it on the classpath of your computer or eclipse project. Alternatively, you can download the eclipse project attached at the end of this page, it has the API already inside it.
Continue reading “Read XLSX file in Java using Apache POI”

Apache POI : An Introduction

In one of our previous series of tutorials for handling excel files in Java, we saw in detail how Jexcel API works. We saw how to read excel files with different data types and also saw how to write to excel files. As we noted there, jexcelapi however has numerous limitations. Although it is a great light weight framework to perform basic excel operations through Java, one of the main limitations of jexcelapi is its inability to handle the newer version of the Microsoft Office Excel files (.xslx files). To overcome this limitation, we can use the Apache POI library.
Continue reading “Apache POI : An Introduction”

Eclipse Maven Plugin

In one of our previous tutorials we saw how Maven Eclipse Plugin can be used to convert a Maven project into an eclipse project. Eclipse similarly has a Maven plugin. In this tutorial, we will have a detailed look at the Eclipse Maven Plugin.
Continue reading “Eclipse Maven Plugin”

Maven Tomcat Plugin

In this tutorial we will see how to configure and use the Maven Tomcat Plugin for Tomcat 7. We can readily use the Maven Tomcat Plugin to perform common tasks like deploy, undeploy, start, stop etc.
Continue reading “Maven Tomcat Plugin”

Maven Eclipse Plugin

Although Maven does a great job in creating projects, handling dependencies etc, but we would still most probably be using an IDE for editing the code. Eclipse is one of the most popular IDEs for Java projects (although it can handle a wide variety of projects other than Java as well). In this tutorial we will have a look at the Maven eclipse plugin and see how we can use it to convert a Maven project into an Eclipse project.
Continue reading “Maven Eclipse Plugin”

Introduction to Maven Plugins

In this particular post in the series of tutorials for Maven, we will have a quick Introduction to Maven Plugins and see some of the commonly used plugins

Maven can be described as a plugin execution framework. Maven by itself does not offer a lot of functionality. It will basically pass on all the responsibilities to plugins which are designed to achieve specific goals. In a way, plugins extend the functionality provided by Maven.
Continue reading “Introduction to Maven Plugins”

Create Web Application using Maven

In the previous tutorials we went through the basics of Maven, saw how to set it up and created a basic Java application. We also saw how to run different phases of build lifecycle like compile, package etc using Maven.

Around The World Flights - Promo Code WORLD15

In this tutorial we will see another example, this time we will create web application using Maven. In the subsequent tutorial we will have a look at Maven plugins, and also describe an example by using Tomcat plugin.
Continue reading “Create Web Application using Maven”

Dependency Management in Maven

In this tutorial we will have a look at the Dependency Management in Maven.

Around The World Flights - Promo Code WORLD15

Java based projects most often make use of external libraries in the form of jar files. Some of the commonly used libraries are Struts, Hibernate, Spring and so on. For a problem free build and deployment of the Java project, it is essential to have these libraries available during compile time, and also appropriately packaged into the deploy-able archive. The versions of these libraries is also an important consideration for a successful build.
Continue reading “Dependency Management in Maven”