Jump to content

Classpath problem


du27177

Recommended Posts

Hi!

I got Java class City:

City.java in folder:  C:\workspace\Implementation\src\com\ibm\project2\Persistence

City.class in folder:  C:\workspace\Implementation\bin\com\ibm\project2\Persistence

 

In iReport i make

FieldClassName: cityBean

Field class type: com.ibm.project2.Persistence.City

 

I tried to put many combinations in classpath (add Folder) , but i have error:

  Compiling to file... C:\workspace\Reporting\src\com\ibm\project2\reports\Test.jasper
 net.sf.jasperreports.engine.design.JRValidationException: Report design not valid :      
 1. java.lang.ClassNotFoundException: com.ibm.project2.Persistence.City 
 at net.sf.jasperreports.engine.design.JRAbstractCompiler.verifyDesign(JRAbstractCompiler.java:258)    
 at net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:140)    
 at com.jaspersoft.ireport.designer.compiler.IReportCompiler.run(IReportCompiler.java:491)    
 at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:561)    
 at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:986)

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...