Sie sind auf Seite 1von 2

TestFirstReport.java:1: package net.sf.jasperreports.engine does not exist | Jaspersof...

Página 1 de 2

JASPERSOFT.COM SUPPORT CONTACT US

PRODUCTS SOLUTIONS SERVICES

Download Now

Answers Exchange Docs Wiki Tracker

Home » Answers » TestFirstReport.java:1: package net.sf.jasperreports.engine does not exist

TestFirstReport.java:1: package net.sf.jasperreports.engine does


not exist Subscribe
Posted on October 27, 2011 at 8:22am

I am new to Jasper. I downloaded iReports yesterday and created and exported a report. I am now trying to deploy the report usin
Similar Questions
g the sample java code given. When I try to compile, I get the following error. "TestFirstReport.java:1: package net.sf.jasperreports. java uses unchecked or unsafe operations
0 engine does not exist". jasperreport new user. need help please reply
jrruntimeexception: no such parameter sort_fields
I downloaded the jasperreports-4.1.2.jar file and put it in my class path and tried to recompile. I still get the same error. Any sugge
invoker service() exception
stions would be greatly appreciated.
java.lang.classnotfoundexception:
org.apache.commons.logging.logfactory
Code:
empty pdf
jasper report ,jasper report jar files and maven
import net.sf.jasperreports.engine.*;
dependencies.
import net.sf.jasperreports.engine.export.*;
import java.util.*; how to create a pdf file from java class
java (jasperreport) builds different results then
public class TestFirstReport { using ireport
ireport and java application
public static void main(String[] args) {
report with hundreds of fields in one record not
String fileName = "FirstTestReport.jasper";
String outFileName = "FirstTestReport.pdf"; working in java app
HashMap hm = new HashMap(); need help plz
try { ..:: how to run .jasper from swing ::..
// Fill the report using an empty data source jasperreports does not work outside netbeans
JasperPrint print = JasperFillManager.fillReport(fileName, hm, new JREmptyDataSource());
error when trying to compile
// Create a PDF exporter
JRExporter exporter = new JRPdfExporter();

// Configure the exporter (set output file name and print object)
exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, outFileName);
exporter.setParameter(JRExporterParameter.JASPER_PRINT, print);

// Export the PDF file


exporter.exportReport();

} catch (JRException e) {
e.printStackTrace();
System.exit(1);
} catch (Exception e) {
e.printStackTrace();
System.exit(1);
}
}
}
</td></tr></tbody></table>

JasperReports Library

snocella
3
Joined: Oct 26 2011 - 10:31am
Last seen: 1 year 7 months ago

1 Answer:
Posted on October 27, 2011 at 1:19pm

You still have something wrong with your classpath. You'll have to fiddle with it more.
0

frankhassanabad
103
Joined: Oct 25 2010 - 11:12am
Last seen: 4 months 3 weeks ago

Post an Answer

Answers User Groups JasperReports Server


Exchange Contribute to our Wiki JasperReports Library
Documentation Request a Feature Jaspersoft ETL
Wiki Report a Bug Jaspersoft Studio

http://community.jaspersoft.com/questions/540748/testfirstreportjava1-package-netsfj... 28/05/2013
TestFirstReport.java:1: package net.sf.jasperreports.engine does not exist | Jaspersof... Página 2 de 2

Copyright © 20 00 - 2013 Tracker Share your Extension iReport Designer


Jaspersoft Corporation
Legal Notices Privacy Policy Terms of Use

http://community.jaspersoft.com/questions/540748/testfirstreportjava1-package-netsfj... 28/05/2013

Das könnte Ihnen auch gefallen