2006 JR Open Discussion Posted August 22, 2006 Share Posted August 22, 2006 By: jerrymouse - zkf5902 one problem in chapter 7 (about jasperreports 2006-03-23 20:32hi, everybody Page 206: Next you need to compile the report. You can do so by using the class com.opensymphony.webwork.views.jasperreports.CompileReport. but i have a error when compiling, the error log is: JasperReports Compiling: D:/workspace/HelloWebwork/resources/users.xml java.io.FileNotFoundException: D:workspaceHelloWebworkusers.class (系统找ä¸åˆ°æŒ‡å®šçš„文件。) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:106) at net.sf.jasperreports.engine.util.JRLoader.loadBytes(JRLoader.java:315) at net.sf.jasperreports.engine.design.JRAbstractJavaCompiler.compileReport(JRAbstractJavaCompiler.java:159) at net.sf.jasperreports.engine.design.JRDefaultCompiler.compileReport(JRDefaultCompiler.java:137) at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:171) at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:130) at com.opensymphony.webwork.views.jasperreports.CompileReport.main(CompileReport.java:28) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:86) and my definition file is users.xml: <?xml version="1.0"?> <!DOCTYPE jasperReport PUBLIC "-//JasperReports//DTD Report Design//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd"> <jasperReport name="users"> ... Could you help me? thanks. I use the IDE(eclipse RCP), and run the command with the ide's application model. the command detail is: java -classpath "....." com.opensymphony.webwork.views.jasperreports.CompileReport D:/workspace/HelloWebwork/resources/users.xml and i'm sure the command is right. but what 's the problem? the line in the users.xml: <jasperReport name="users">...</jasperReport> and the line in the error logs: java.io.FileNotFoundException: D:workspaceHelloWebworkusers.class what's the relation between the name attribute and the error? So sorry for my poor english:) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now