Hi, can anyone please help me, I am a newbie in Jasper Reports..
The code Compiles Fine This code Gives me the following error on running:
Can anyone please tell me how can i solve this... Thanks a lot
Regards<br />Sandy<br />[SCJP 5.0 - 75%]<br />[SCWCD 1.4 - 85%]<br />------------------<br />Tiger, Tiger burning bright,<br />Like a geek who works all night,<br />What new-fangled bit or byte,<br />Could ease the hacker's weary plight?
Originally posted by Adeel Ansari: Now you need commons-logging.jar
Intelligent..!! So I gave that to it... and then it asked for some commons-beanutils.... and guess what...i downloaded it and provided the jar file...
all this did not ended my problems.. Now it gives a long list of errors regarding these packages...
If you want i can also post those errors...
Adeel Ansari
Ranch Hand
Joined: Aug 15, 2004
Posts: 2874
posted
0
Originally posted by Sandeep Chhabra: If you want i can also post those errors...
Yes please. Moreover, you can search the same forum with the word "jasper reports". You would definitely get some helping threads I have raised in past.
Thanks.
Sandeep Chhabra
Ranch Hand
Joined: Aug 28, 2005
Posts: 340
posted
0
My Code for the jasper4.java file (to connect jasper report)
Hi .. I too got the same error while trying to create a report from a jrxml file created using iReport tool...This file is placed in the root directory .. Could someone help me out ...
Error :net.sf.jasperreports.engine.JRException: Error compiling report java source files : C:\NewProj\FirstReport\Simple_Report_1165308653100_379903.java net.sf.jasperreports.engine.JRException: Error compiling report java source files : C:\NewProj\FirstReport\Simple_Report_1165308653100_379903.java at net.sf.jasperreports.engine.design.JRJavacCompiler.compileClasses(JRJavacCompiler.java:93) at net.sf.jasperreports.engine.design.JRAbstractClassCompiler.compileUnits(JRAbstractClassCompiler.java:67) at net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:190) at net.sf.jasperreports.engine.design.JRDefaultCompiler.compileReport(JRDefaultCompiler.java:105) at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:211) at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:144) at sample.JasperReportsIntro.main(JasperReportsIntro.java:21) Caused by: java.io.IOException: CreateProcess: javac -classpath "C:\NewProj\FirstReport\bin;C:\Eclipse\jar files\jasperreports-1.2.8.jar;C:\Eclipse\jar files\commons-beanutils-1.7.0.jar;C:\Eclipse\jar files\commons-collections-2.1.1.jar;C:\Eclipse\jar files\commons-digester-1.7.jar;C:\Eclipse\jar files\commons-logging-1.0.2.jar;C:\Eclipse\jar files\itext-1.3.jar;C:\Eclipse\jar files\jdbc2_0-stdext.jar" C:\NewProj\FirstReport\Simple_Report_1165308653100_379903.java error=2 at java.lang.ProcessImpl.create(Native Method) at java.lang.ProcessImpl.<init>(Unknown Source) at java.lang.ProcessImpl.start(Unknown Source) at java.lang.ProcessBuilder.start(Unknown Source) at java.lang.Runtime.exec(Unknown Source) at java.lang.Runtime.exec(Unknown Source) at net.sf.jasperreports.engine.design.JRJavacCompiler.compileClasses(JRJavacCompiler.java:62) ... 6 more
and when i build my project then system give me error in output windows
============see my all error
Compiling 3 source files to C:\Documents and Settings\Administrator\My Documents\Creator\Projects\WebApplication13\build\web\WEB-INF\classes C:\Documents and Settings\Administrator\My Documents\Creator\Projects\WebApplication13\src\webapplication13\Page1.java:306: unreported exception net.sf.jasperreports.engine.JRException; must be caught or declared to be thrown
C:\Documents and Settings\Administrator\My Documents\Creator\Projects\WebApplication13\src\webapplication13\Page1.java:307: unreported exception net.sf.jasperreports.engine.JRException; must be caught or declared to be thrown
C:\Documents and Settings\Administrator\My Documents\Creator\Projects\WebApplication13\src\webapplication13\Page1.java:318: unreported exception net.sf.jasperreports.engine.JRException; must be caught or declared to be thrown
C:\Documents and Settings\Administrator\My Documents\Creator\Projects\WebApplication13\src\webapplication13\Page1.java:319: unreported exception net.sf.jasperreports.engine.JRException; must be caught or declared to be thrown
Note: C:\Documents and Settings\Administrator\My Documents\Creator\Projects\WebApplication13\src\webapplication13\Page1.java uses or overrides a deprecated API. Note: Recompile with -Xlint eprecation for details.
4 errors C:\Documents and Settings\Administrator\My Documents\Creator\Projects\WebApplication13\nbproject\build-impl.xml:233: The following error occurred while executing this line: C:\Documents and Settings\Administrator\My Documents\Creator\Projects\WebApplication13\nbproject\build-impl.xml:122: Compile failed; see the compiler error output for details. BUILD FAILED (total time: 0 seconds)
sir i use jasperviewer and get right result but only in server browser when i use my in client browser then jasperviewer open in server browser not open in client browser
some body i use inputstreem but sir i not have any idea of inputstreem how i opasss through streem to client browser
please give me idea how i use inputstreem in jsp page
thank's
aamir
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.