java.lang.ClassNotFoundException: org.apache.poi.ss.usermodel.Workbook

Please any one let me know what is the issue on POI because I am unable to export excel, pdf & doc and I am always getting java.lang.ClassNotFoundException: org.apache.poi.ss.usermodel.Workbook error:-

POI Dependencies Section:-

<dependency>

<groupId>org.apache.poi</groupId>

<artifactId>poi </artifactId>

<version>3.10-FINAL</version>

<type>jar</type>

<scope>compile</scope>

</dependency>

<dependency>

<groupId>org.apache.poi</groupId>

<artifactId>poi-ooxml</artifactId>

<version>3.10-FINAL</version>

<type>jar</type>

<scope>compile</scope>

</dependency>

<dependency>

<groupId>org.apache.poi</groupId>

<artifactId>poi-ooxml-schemas</artifactId>

<version>3.10-FINAL</version>

<type>jar</type>

<scope>compile</scope>

</dependency>

 

JIRA Version Section:-

 

<jira.version>6.3.12</jira.version>

 

<amps.version>5.0.4</amps.version>

 

Import Section:-

import org.apache.poi.hssf.usermodel.HSSFWorkbook;

import org.apache.poi.ss.usermodel.Cell;

import org.apache.poi.ss.usermodel.CellStyle;

import org.apache.poi.ss.usermodel.Font;

import org.apache.poi.ss.usermodel.IndexedColors;

import org.apache.poi.ss.usermodel.Row;

import org.apache.poi.ss.usermodel.Sheet;

import org.apache.poi.ss.usermodel.Workbook;

Java File Section:-

// create a new workbook

    Workbook wb = new  HSSFWorkbook();// Error in this line

    Map<String, CellStyle> styles = createStyles(wb);   

// create a new sheet

    Sheet sheet = wb.createSheet();

 

2 answers

0 vote

What's the JAVA version that you're using with JIRA 6.3.12? We should use Java 7 or Java 8 (preferably).

https://confluence.atlassian.com/display/JIRA063/Supported+Platforms

 

0 vote

Delete the poi-ooxml-Version.jar  from your maven repository and download or build the project again.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

81 views 0 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you