heitordp2 Posted May 25, 2008 Share Posted May 25, 2008 Help......Error: net.sf.jasperreports.engine.JRException: Error compiling report java source files : C:UsersHeitorDocumentsNetBeansProjectsJasperReportsDemoAppHelloReportWorld_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 moreCaused 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 Link to comment Share on other sites More sharing options...
Teodor Danciu Posted May 26, 2008 Share Posted May 26, 2008 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 Link to comment Share on other sites More sharing options...
takCare Posted May 30, 2008 Share Posted May 30, 2008 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:ProjectIdeaIndoreUntitled_report_1_1212127187375_373276.java net.sf.jasperreports.engine.JRException: Error compiling report java source files : D:ProjectIdeaIndoreUntitled_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 JARsAbsoluteLayout.jar;D:All JARsacrobat.jar;D:All JARsactivation.jar;D:All JARsantlr-2.7.2.jar;D:All JARsbsf-2.3.0.jar;D:All JARscmu_time_awb.jar;D:All JARscmu_us_kal.jar;D:All JARscmudict04.jar;D:All JARscmulex.jar;D:All JARscmutimelex.jar;D:All JARscomm.jar;D:All JARscommons-beanutils-1.7.0.jar;D:All JARscommons-beanutils-bean-collections.jar;D:All JARscommons-beanutils-core.jar;D:All JARscommons-beanutils.jar;D:All JARscommons-chain-1.1.jar;D:All JARscommons-collections-3.2.jar;D:All JARscommons-digester-1.6.jar;D:All JARscommons-fileupload-1.1.1.jar;D:All JARscommons-digester-1.8.jar;D:All JARscommons-io-1.1.jar;D:All JARscommons-logging-1.0.4.jar;D:All JARscommons-logging-1.1.jar;D:All JARscommons-validator-1.3.0.jar;D:All JARsen_us.jar;D:All JARsfreetts.jar;D:All JARsj2ee.jar;D:All JARsj3dcore.jar;D:All JARsj3dutils.jar;D:All JARsjai_codec.jar;D:All JARsjai_core.jar;D:All JARsjasperreports-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)********************************************************************************************************** Link to comment Share on other sites More sharing options...
takCare Posted June 2, 2008 Share Posted June 2, 2008 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.... Link to comment Share on other sites More sharing options...
lucianc Posted June 2, 2008 Share Posted June 2, 2008 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 Link to comment Share on other sites More sharing options...
abdellahi.boubacar Posted January 9, 2013 Share Posted January 9, 2013 I have the problemeMy 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 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