adding jar in Jcreator

I want to read doc file by writing java code in jcreator editor . For this purpose , I want to use Apache POI jar file .

But I don't know how to add jar file in Jcreator editor . My file structure is like this :

<img src="https://i.stack.imgur.com/Ouh41.png" alt="enter image description here">

Now I am referring using this code .

import org.apache.poi.poifs.filesystem.*; import org.apache.poi.hpsf.DocumentSummaryInformation; import org.apache.poi.hwpf.*; import org.apache.poi.hwpf.extractor.*; import org.apache.poi.hwpf.usermodel.HeaderStories;

But Jcreator is showing this error to me .

H:\Code For others\chat\docx file\ReadDocFileFromJava.java:1: package org.apache.poi.poifs.filesystem does not exist import org.apache.poi.poifs.filesystem.*; ^ H:\Code For others\chat\docx file\ReadDocFileFromJava.java:2: package org.apache.poi.hpsf does not exist import org.apache.poi.hpsf.DocumentSummaryInformation; ^ H:\Code For others\chat\docx file\ReadDocFileFromJava.java:3: package org.apache.poi.hwpf does not exist import org.apache.poi.hwpf.*;

Why is the Jcreator showing this errors ? What do I do to remove this error ? I am following thus tutorial for doc file reading .


<ol> <li>

Highlight the current project:

<img src="https://i.stack.imgur.com/ef3aY.png" alt="Image of highlighting the current project">

</li> <li>

Click on the properties button:

<img src="https://i.stack.imgur.com/UIcPd.jpg" alt="Image of the properties button">

</li> <li>

Click on the <strong>Required Libraries</strong> tab, then click <strong>New</strong>:

<img src="https://i.stack.imgur.com/lUcoK.jpg" alt="Image of the Add Library step">

</li> <li>

Give the library an appropriate name, then click <strong>Add -> Add Archive</strong>:

<img src="https://i.stack.imgur.com/vnbgf.jpg" alt="Image of the specify library step">

</li> <li>

Use the navigator to select the .jar file, then click <strong>OK</strong> on the Set Library window.

</li> <li>

Ensure the libraries are checked, then click <strong>OK</strong>:

<img src="https://i.stack.imgur.com/eZQi0.jpg" alt="Image of the added libraries">

</li> </ol>

After this, the project should build correctly.



I couldn't locate the library with the exact name yours had, but when I went looking for them I had to download both POI Scratchpad and Apache POI in order to get it working, so <strong>pay close attention to exactly which packages aren't found if it still doesn't build</strong> when you follow the steps above


  • Converting a file with “.dotx” extension (template) to “docx” (Word File) [closed]
  • Java Security Exception BIRT and Apache POI Hack
  • Does the XWPF of Apache POI support paragraph's authohyphenation feature?
  • Not able to initialize org.apache.poi.xslf.usermodel.XMLSlideShow in coldfusion
  • Gradle DSL method not found: 'exclude()'
  • flink InputStream of class class org.apache.commons.compress.archivers.zip.ZipFile$1 is not implemen
  • Read excel sheet without using POI api
  • How to convert .docx to .doc using apache poi
  • Excel file access from internal storage android app
  • Google Maps display province lines
  • Objects follow responsive background-image
  • POI DataFormatter returns 2 digits year instead of 4 digits year for date cells
  • Apache POI : Difference between row.getLastCellNum and row.getNoOfPhysicalCell
  • Reflect Data in the Excel sheet to the android app
  • Java: parsing ms-word document using POI/HWPF
  • Java Apache Poi SXSSF with Excel Macros
  • Convert HTML page into MS word using java
  • How to split a .doc into several .doc using JAVA POI?
  • django point definition
  • Parse xlsx file row by row into String[]
  • Apache Poi excel remove blank rows
  • Generating Powerpoint PPT with ColdFusion?
  • How to convert ordinary java Color to IndexedColors
  • pushing an object to an array in mongoDB
  • Extracting data from a tree
  • How to Generate DataXML in OpenXML for powerpoint in java
  • Integrating excel sheet with java swing
  • Need help understanding jmeter regular expression extractor and results tree output
  • adding jar in Jcreator
  • CakePHP test behaviour with mapped method
  • gradle.buildStarted not triggered
  • Weird problem about Java Generics operation
  • Python's equivalent of Java's Set.add()?
  • Copy PowerPoint Slides in Java (preferably)
  • How to use Eager Loading and Join in Eloquent at a same time in laravel 4
  • Pyspark window function with condition
  • How can I programatically convert .xls and .csv files to .xlsx?
  • Encoding CV_32FC1 Mat data with base64
  • How to read xlsx file in an android application?
  • Is it possible to extract table infomation using Apache Tika?