'iReport - java.lang.ClassNotFoundException
Im using iReport 3.7.6.
I have a Parameter with following parameter class: at.gv.domain.print.impl.ParameterClass.
For using that class I did following:
--> Extras --> Option --> Classpath --> Add Folder -->
C:\Development\Projectname\workspace\DomainProject\target\classes
Under C:\Development\Projectname\workspace\DomainProject\target\classes\at\gv\domain\print\impl there are my ParameterClass.class.
Now if I wanna compile the .jrxml I get following error:
net.sf.jasperreports.engine.design.JRValidationException: Report design not valid :
1. java.lang.ClassNotFoundException: at.gv.domain.print.impl.ParameterClass
Someone can tell me why? I added the classpath entry so why the class got not found?
I tried to make a .jar of my Domain project - if I added that the class got found. Is there any problem with target directory (Im using Maven)?
Solution 1:[1]
Your probleme is with the jar of ireport, I think that the version of ireport is not the same as the jar used in the IDE, if it's true try to change the jar that's all, hope this help.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |
