# Jasper reports plugin and Barcode4j QR code

**URL:** https://forum.servoy.com/t/jasper-reports-plugin-and-barcode4j-qr-code/20688
**Category:** Questions
**Created:** [February 17, 2022, 11:18am UTC](https://forum.servoy.com/t/jasper-reports-plugin-and-barcode4j-qr-code/20688 "2022-02-17T11:18:55Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![lwjwillemsen](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/lwjwillemsen/32/4987_2.png) [@lwjwillemsen](https://forum.servoy.com/u/lwjwillemsen)
#### Post date: [February 17, 2022, 11:18am UTC](https://forum.servoy.com/t/jasper-reports-plugin-and-barcode4j-qr-code/20688/1 "2022-02-17T11:18:55Z")

</div>

I am trying to generate a Barcode4j QR Code from a Jasper report through the Jasper report plugin.  
I am getting an error “java.lang.NoClassDefFoundError: com/google/zxing/WriterException”, issued this error on [https://github.com/Servoy/servoy\_jasperreports/issues](https://github.com/Servoy/servoy_jasperreports/issues) one year ago, no response until now.

No problem when report runs from JasperSoft Studio, I guess the needed library is not present in the Jasper report plugin.

Any help is very appreciated!

---

<div class="post-metadata">

### Author: ![stefaniacolombara](https://avatars.discourse-cdn.com/v4/letter/s/e9bcb4/32.png) [@stefaniacolombara](https://forum.servoy.com/u/stefaniacolombara)
#### Post date: [February 10, 2024, 1:46pm UTC](https://forum.servoy.com/t/jasper-reports-plugin-and-barcode4j-qr-code/20688/2 "2024-02-10T13:46:55Z")

</div>

Hello,

did you solve it?

I have same issue.

---

<div class="post-metadata">

### Author: ![murmi](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/murmi/32/4446_2.png) [@murmi](https://forum.servoy.com/u/murmi)
#### Post date: [February 10, 2024, 2:28pm UTC](https://forum.servoy.com/t/jasper-reports-plugin-and-barcode4j-qr-code/20688/3 "2024-02-10T14:28:37Z")

</div>

> lwjwillemsen:  
> I am trying to generate a Barcode4j QR Code from a Jasper report through the Jasper report plugin.  
> I am getting an error “java.lang.NoClassDefFoundError: com/google/zxing/WriterException”, issued this error on [https://github.com/Servoy/servoy\_jasperreports/issues](https://github.com/Servoy/servoy_jasperreports/issues) one year ago, no response until now.
> 
> No problem when report runs from JasperSoft Studio, I guess the needed library is not present in the Jasper report plugin.
> 
> Any help is very appreciated!

Hi  
We are producing QR-Codes with the jasperreports-6.4.1.jar plugin and in the plugins\servoy\_jasperreports\ directory there is a file barcode4j-2.1.jar. Maybe this one is missing?

---

<div class="post-metadata">

### Author: ![stefaniacolombara](https://avatars.discourse-cdn.com/v4/letter/s/e9bcb4/32.png) [@stefaniacolombara](https://forum.servoy.com/u/stefaniacolombara)
#### Post date: [February 10, 2024, 2:51pm UTC](https://forum.servoy.com/t/jasper-reports-plugin-and-barcode4j-qr-code/20688/4 "2024-02-10T14:51:09Z")

</div>

Hi,

This is how we solve it:

1. added javase-3.3.1.jar and core-3.3.1,jar plugins into plugins/servoy\_jasperreports folder
2. added the following line of code in servoy\_jasperreports.jar.jnlp file ( you can find it in the plugins folder)  
  
3. added the following line of code in the plugins.properties file  
servoy\_jasperreports/core-3.3.1.jar=1637773803110:545396  
servoy\_jasperreports/javase-3.3.1.jar=1637773812071:41688
4. Restarted tomcat and the application server.

And yes, we need also the barcode4j-2.1.jar file as murmi said.  
Hope it helps

---

<div class="post-metadata">

### Author: ![lwjwillemsen](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/lwjwillemsen/32/4987_2.png) [@lwjwillemsen](https://forum.servoy.com/u/lwjwillemsen)
#### Post date: [February 12, 2024, 8:38am UTC](https://forum.servoy.com/t/jasper-reports-plugin-and-barcode4j-qr-code/20688/5 "2024-02-12T08:38:15Z")

</div>

Hi,

I placed the zxing jar file in the servoy\_jasperreports directory and added the following lines to the servoy\_jasperreports.jar.jnlp :

It’s a pity that the zxing is not included the the Barcode Jasperreports build.
