Tutorials Navigation
Apache POI PPT Tutorial - Installation
Tutorial Name: Apache POI PPT Tutorial - Installation
Category: PC Tutorials
Submitted By: hoot
Date Added:
Comments: 0
Views: 539
Related Forum: PC Building Forum
Share:
This chapter takes you through the process of setting up Apache POI on Windows and Linux based systems. Apache POI can easily be installed and integrated with your current Java environment, following a few simple steps without any complex setup procedures. User administration is required for installation.
System Requirements
JDK-----Java SE 2 JDK 1.5 or above
Memory-----1 GB RAM (recommended)
Disk Space-----No minimum requirement
Operating System Version-----Windows XP or above, Linux
Let us now proceed with the steps to install Apache POI.
Step 1: Verify your Java Installation
First of all, you need to have Java Software Development Kit (SDK) installed on your system. To verify this, execute any of the following two commands depending on the platform you are working on.
If the Java installation has been done properly, then it will display the current version and specification of your Java installation. A sample output is given in the following table.
Platform: Windows
Command: \>java -version
Sample Output: Java version "1.7.0_60"
Java (TM) SE Run Time
Environment (build 1.7.0_60-b19)
Java Hotspot (TM) 64-bit Server
VM (build 24.60-b09,mixed mode)
Platform: Linux
Command: $java -version
Sample Output: java version "1.7.0_25"
Open JDK Runtime Environment (rhel-2.3.10.4.el6_4-x86_64)
Open JDK 64-Bit Server VM (build 23.7-b01, mixed mode)
-I assume that the readers of this tutorial have Java SDK version 1.7.0_60 installed on their system.
-In case you do not have Java SDK, download its current version from [ Register or Signin to view external links. ]
Step 2: Set your Java Environment
Set the environment variable JAVA_HOME to point to the base directory location where Java is installed on your machine. For example,
Platform: Windows
Description: Set JAVA_HOME to C:\ProgramFiles\java\jdk1.7.0_60
Platform: Linux
Description: Export JAVA_HOME = /usr/local/java-current
Append the full path of Java compiler location to the System Path.
Platform: Windows
Description: Append the String "C:\Program Files\Java\jdk1.7.0_60\bin" to the end of the system variable PATH.
Platform: Linux
Description: Export PATH = $PATH:$JAVA_HOME/bin/
Execute the command java -version from the command prompt as explained above.
Step 3: Install Apache POI Library
Download the latest version of Apache POI [ Register or Signin to view external links. ]
and unzip its contents to a folder from where the required libraries can be linked to your Java program. Let us assume the files are collected in a folder on C drive.
The following images show the directories and the file structures inside the downloaded folder
[ Register or Signin to view external links. ]
[ Register or Signin to view external links. ]
Add the complete path of the five jars as highlighted in the above image to the CLASSPATH.
Platform: Windows
Description: Append the following strings to the end of the user variable CLASSPATH
"C:\poi-3.9\poi-3.9-20121203.jar;"
"C:\poi-3.9\poi-ooxml-3.9-20121203.jar;"
"C:\poi-3.9\poi-ooxml-schemas-3.9-20121203.jar;"
"C:\poi-3.9\ooxml-lib\dom4j-1.6.1.jar;"
"C:\poi-3.9\ooxml-lib\xmlbeans-2.3.0.jar;.;"
Platform: Linux
Description: Export CLASSPATH = $CLASSPATH:
/usr/share/poi-3.9/poi-3.9-20121203.tar:
/usr/share/poi-3.9/poi-ooxml-schemas-3.9-20121203.tar:
/usr/share/poi-3.9/poi-ooxml-3.9-20121203.tar:
/usr/share/poi-3.9/ooxml-lib/dom4j-1.6.1.tar:
/usr/share/poi-3.9/ooxml-lib/xmlbeans-2.3.0.tar
System Requirements
JDK-----Java SE 2 JDK 1.5 or above
Memory-----1 GB RAM (recommended)
Disk Space-----No minimum requirement
Operating System Version-----Windows XP or above, Linux
Let us now proceed with the steps to install Apache POI.
Step 1: Verify your Java Installation
First of all, you need to have Java Software Development Kit (SDK) installed on your system. To verify this, execute any of the following two commands depending on the platform you are working on.
If the Java installation has been done properly, then it will display the current version and specification of your Java installation. A sample output is given in the following table.
Platform: Windows
Command: \>java -version
Sample Output: Java version "1.7.0_60"
Java (TM) SE Run Time
Environment (build 1.7.0_60-b19)
Java Hotspot (TM) 64-bit Server
VM (build 24.60-b09,mixed mode)
Platform: Linux
Command: $java -version
Sample Output: java version "1.7.0_25"
Open JDK Runtime Environment (rhel-2.3.10.4.el6_4-x86_64)
Open JDK 64-Bit Server VM (build 23.7-b01, mixed mode)
-I assume that the readers of this tutorial have Java SDK version 1.7.0_60 installed on their system.
-In case you do not have Java SDK, download its current version from [ Register or Signin to view external links. ]
Step 2: Set your Java Environment
Set the environment variable JAVA_HOME to point to the base directory location where Java is installed on your machine. For example,
Platform: Windows
Description: Set JAVA_HOME to C:\ProgramFiles\java\jdk1.7.0_60
Platform: Linux
Description: Export JAVA_HOME = /usr/local/java-current
Append the full path of Java compiler location to the System Path.
Platform: Windows
Description: Append the String "C:\Program Files\Java\jdk1.7.0_60\bin" to the end of the system variable PATH.
Platform: Linux
Description: Export PATH = $PATH:$JAVA_HOME/bin/
Execute the command java -version from the command prompt as explained above.
Step 3: Install Apache POI Library
Download the latest version of Apache POI [ Register or Signin to view external links. ]
and unzip its contents to a folder from where the required libraries can be linked to your Java program. Let us assume the files are collected in a folder on C drive.
The following images show the directories and the file structures inside the downloaded folder
[ Register or Signin to view external links. ]
[ Register or Signin to view external links. ]
Add the complete path of the five jars as highlighted in the above image to the CLASSPATH.
Platform: Windows
Description: Append the following strings to the end of the user variable CLASSPATH
"C:\poi-3.9\poi-3.9-20121203.jar;"
"C:\poi-3.9\poi-ooxml-3.9-20121203.jar;"
"C:\poi-3.9\poi-ooxml-schemas-3.9-20121203.jar;"
"C:\poi-3.9\ooxml-lib\dom4j-1.6.1.jar;"
"C:\poi-3.9\ooxml-lib\xmlbeans-2.3.0.jar;.;"
Platform: Linux
Description: Export CLASSPATH = $CLASSPATH:
/usr/share/poi-3.9/poi-3.9-20121203.tar:
/usr/share/poi-3.9/poi-ooxml-schemas-3.9-20121203.tar:
/usr/share/poi-3.9/poi-ooxml-3.9-20121203.tar:
/usr/share/poi-3.9/ooxml-lib/dom4j-1.6.1.tar:
/usr/share/poi-3.9/ooxml-lib/xmlbeans-2.3.0.tar
Ratings
Comments
Related Tutorials
- 01. Emulating Xbox 360 on PC for Running COD4 With Mods(3,492)
- 02. How to: Matrix Numbers | Batch File(1,903)
- 03. How to Password Protect Files on Windows(857)
- 04. How to play Socom 2/3/ and Combined Assault on PC(6,716)
- 05. Modern Warfare 2 Vac Ban Bypass Tutorial(6,133)
- 06. How to embed an image on TheTechGame(3,098)
- 07. [PC] NIOH 2 OTHER USER SAVE RESIGN(12,981)
- 08. Host bot lobbies! Full Tutorial!(11,241)
- 09. Unban yourself [Plutonium BO2](14,240)
- 10. Fall Guys - How to Change Your Name Color on Fall Guys(8,385)
- 11. Best Crosshair Settings for Valorant(6,525)
- 12. Othercide The Surgeon Boss Guide(2,539)
- 13. Othercide Remembrances Unlock Guide(4,460)
- 14. Othercide Beginners Tips and Tricks(2,708)
- 15. How to Fix Grounded Crashes, Loading Time, Low FPS and Other(4,845)
"Apache POI PPT Tutorial - Installation" :: Login/Create an Account :: 0 comments