Jump to content
Changes to the Jaspersoft community edition download ×

Data Source Sample

2005 IR Help

Recommended Posts

By: philip - hkphilip

Data Source Sample

2004-03-12 02:26

When i try to run the datasource sample,

is the first step to compile the xml by "java DataSourceApp -Tcompile -FDataSourceReport.xml" ?


After the DataSourceReport.java is generated, when it is trying to be compiled through compileMethod.invoke(javac, new Object[] {source}) at dori.jasper.engine.design.JRJdk12Compiler.compileClass, it prompt the following error:


dori.jasper.engine.JRException: Errors were encountered when compiling report expressions class file:

c:program files...DataSourceReport.java:5: Package dori.jasper.engine.fill not found in import.

import dori.jasper.engine.fill.*;


1 error


I believe i have input correct classpath by displaying values in the coding of dori.jasper.engine.design.JRJdk12Compiler.compileClass


String[] source = new String[3];

source[0] = sourceFile.getPath();

source[1] = "-classpath";

source[2] = classpath;


Do u have any idea what the problem i hit?






By: philip - hkphilip

RE: Data Source Sample

2004-03-12 20:00


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...