Click here to Skip to main content
15,945,603 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
filename="C:\\Users\\HP\\Documents\\NetBeansProjects\\CreditSystem\\src\\pd.jrxml";
            JasperReport jr=JasperCompileManager.compileReport(filename);
            JasperPrint jp=JasperFillManager.fillReport(jr,null,conn);
            JasperViewer.viewReport(jp);




Error
java.lang.NoClassDefFoundError:


What I have tried:

Tired many thing but all in vial can't find solution.
Posted
Updated 22-Feb-17 16:23pm
Comments
Richard MacCutchan 20-Feb-17 12:29pm    
Where is the rest of the error message?

add these jar files to your library

commons-beanutils-1.8.2.jar
commons-collections-3.2.1.jar
commons-digester-1.7.jar
commons-logging-1.1.jar
groovy-all-1.7.5.jar
iText-2.1.7.jar
jasperreports-4.1.2.jar
commons-javaflow-20060411.jar


There may be updated versions of these files.
 
Share this answer
 
v2
There is plenty of information on this error in Google Search: java.lang.NoClassDefFoundError[^] ... Here is one: 3 ways to solve java.lang.NoClassDefFoundError in Java J2EE[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900