0

While run in NetBeans it runs perfectly but when build and go to dist and run executable jar file report cannot run. Then I tried to run in cmd I got an error

java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.<init> (Z) V
Alex K
  • 22,315
  • 19
  • 108
  • 236

1 Answers1

0

It looks like the version of ASM library is different when program runs inside NetBeans and when run in cmd. Review your project setup and ensure that your IDE setup matches your standalone setup.

Karol Dowbecki
  • 43,645
  • 9
  • 78
  • 111
  • Problem Solved... i removed all jasper libraries and install ireport 5.6.0 after installation i add libraries in netbeans where ireport installed Path is : C:\Program Files (x86)\Jaspersoft\iReport-5.6.0\ireport\modules\ext – Mohsin Yousuf Mar 19 '18 at 07:55