net.sf.jasperreports.engine.JRException:

1
Help......Error:

net.sf.jasperreports.engine.JRException: Error compiling report java source files : C:\Users\Heitor\Documents\NetBeansProjects\JasperReportsDemoApp\HelloReportWorld_1211729008617_102345.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.JasperCompileManager.compileReport(JasperCompileManager.java:219)
at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:152)
at jasperreportsdemoapp.Main.main(Main.java:37)
Caused by: java.io.IOException: Cannot run program "javac": CreateProcess error=2, O sistema não pode encontrar o arquivo especificado
at java.lang.ProcessBuilder.start(ProcessBuilder.java:459)
at java.lang.Runtime.exec(Runtime.java:593)
at java.lang.Runtime.exec(Runtime.java:466)
at net.sf.jasperreports.engine.design.JRJavacCompiler.compileClasses(JRJavacCompiler.java:62)
... 5 more
Caused by: java.io.IOException: CreateProcess error=2, O sistema não pode encontrar o arquivo especificado
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(ProcessImpl.java:81)
at java.lang.ProcessImpl.start(ProcessImpl.java:30)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:452)
... 8 more
heitordp2's picture
Joined: May 25 2008 - 1:59am
Last seen: 5 years 11 months ago

5 Answers:

0
Hi,

The stack trace indicates that you did not have the JDT-compiler JAR file in the classpath of your application.
You can find this JAR in the /lib folder of the JasperReports project distribution package.

But if you want to understand JR better, you should start with this FAQ:
http://jasperforge.org/jasperreports/faq.html#FAQ22

I hope this helps.
Teodor
teodord's picture
2817
Joined: Jun 30 2006 - 9:00am
Last seen: 1 month 1 day ago
0
I am facing the same problem. I i included the latest JasperReports3.0(i think jdt-compiler included in this package)in netbean project library but problem still not resolved..
What to do ?? anything else i missed in the program??
Plz help..........

***************************************
run:
err net.sf.jasperreports.engine.JRException: Error compiling report java source files : D:\Project\IdeaIndore\Untitled_report_1_1212127187375_373276.java
net.sf.jasperreports.engine.JRException: Error compiling report java source files : D:\Project\IdeaIndore\Untitled_report_1_1212127187375_373276.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 ideaindore.CPVReceiptReports.showReport(CPVReceiptReports.java:159)
at ideaindore.CPVReceiptReports.btnGenerateActionPerformed(CPVReceiptReports.java:116)
at ideaindore.CPVReceiptReports.access$000(CPVReceiptReports.java:32)
at ideaindore.CPVReceiptReports$2.actionPerformed(CPVReceiptReports.java:77)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.plaf.basic.BasicButtonListener$Actions.actionPerformed(BasicButtonListener.java:287)
at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1571)
at javax.swing.JComponent.processKeyBinding(JComponent.java:2763)
at javax.swing.JComponent.processKeyBindings(JComponent.java:2798)
at javax.swing.JComponent.processKeyEvent(JComponent.java:2726)
at java.awt.Component.processEvent(Component.java:5265)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3955)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1810)
at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:672)
at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:920)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:798)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:636)
at java.awt.Component.dispatchEventImpl(Component.java:3841)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Window.dispatchEventImpl(Window.java:1778)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Caused by: java.io.IOException: CreateProcess: javac -classpath "D:\All JARs\AbsoluteLayout.jar;D:\All JARs\acrobat.jar;D:\All JARs\activation.jar;D:\All JARs\antlr-2.7.2.jar;D:\All JARs\bsf-2.3.0.jar;D:\All JARs\cmu_time_awb.jar;D:\All JARs\cmu_us_kal.jar;D:\All JARs\cmudict04.jar;D:\All JARs\cmulex.jar;D:\All JARs\cmutimelex.jar;D:\All JARs\comm.jar;D:\All JARs\commons-beanutils-1.7.0.jar;D:\All JARs\commons-beanutils-bean-collections.jar;D:\All JARs\commons-beanutils-core.jar;D:\All JARs\commons-beanutils.jar;D:\All JARs\commons-chain-1.1.jar;D:\All JARs\commons-collections-3.2.jar;D:\All JARs\commons-digester-1.6.jar;D:\All JARs\commons-fileupload-1.1.1.jar;D:\All JARs\commons-digester-1.8.jar;D:\All JARs\commons-io-1.1.jar;D:\All JARs\commons-logging-1.0.4.jar;D:\All JARs\commons-logging-1.1.jar;D:\All JARs\commons-validator-1.3.0.jar;D:\All JARs\en_us.jar;D:\All JARs\freetts.jar;D:\All JARs\j2ee.jar;D:\All JARs\j3dcore.jar;D:\All JARs\j3dutils.jar;D:\All JARs\jai_codec.jar;D:\All JARs\jai_core.jar;D:\All JARs\jasperreports-1.3.1.jar;D”
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(ProcessImpl.java:81)
at java.lang.ProcessImpl.start(ProcessImpl.java:30)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:451)
at java.lang.Runtime.exec(Runtime.java:591)
at java.lang.Runtime.exec(Runtime.java:464)
at net.sf.jasperreports.engine.design.JRJavacCompiler.compileClasses(JRJavacCompiler.java:62)
**********************************************************************************************************
takCare's picture
Joined: May 28 2008 - 4:09pm
Last seen: 5 years 11 months ago
0
plz give me exact path of jdt-compiler.jar file.I am unable to find jdt-compiler under jasperreport....
plz help is this only reason behind error....
takCare's picture
Joined: May 28 2008 - 4:09pm
Last seen: 5 years 11 months ago
0
takCare wrote:
plz give me exact path of jdt-compiler.jar file.I am unable to find jdt-compiler under jasperreport....


The JDT jar is located at lib/jdt-compiler-3.1.1.jar in the JasperReports distribution.

HTH,
Lucian
lucianc's picture
5187
Joined: Jul 17 2006 - 1:10am
Last seen: 1 hour 51 min ago
0

I have the probleme

My application runs perfectly on my pc HP DV7-Pvillion, but as I put the jar in my application and its libraries on other machines running all except the generation of PDF files. in my the log files I have error as: Error compiling report java source files

I am working on netbeans 6.8 and I use iRaport



thank you in advance

abdellahi.boubacar's picture
Joined: Jan 8 2013 - 7:54pm
Last seen: 1 year 3 months ago
Feedback
randomness