We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

Compiling Jasper Report from Java Program

ShaniG
ShaniG asked
on
Medium Priority
1,923 Views
Last Modified: 2013-11-23
Hello There,
                 I'm using IReport Designer and Jasper Reports for Reporting in my swing application. I have made a Stock report which is a very simple report showing the current values of Stock table without taking any argument. I generated this report using IReport 1.2 and is running fine and giving me required output. Now when I want to call StockReport.jrxml from my swing application it is throwing exception. Following is the code i'm writting on the click of a button


 try{
       JasperDesign jasperDesign = JRXmlLoader.load("D:/Eclipse Work/fitup/Reports/StockReport.jrxml");
                       JasperReport jasperReport = JasperCompileManager.compileReport(jasperDesign);
                       IConnection con=new ConnectionManager();
                       JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, null, con.open());
                       JasperViewer.viewReport(jasperPrint);
                 }catch(Exception ex) {
                      // String connectMsg = "Could not create the report " + ex.getMessage() + " " + ex.getLocalizedMessage();
                       System.out.println(ex);
                 }

                  
and Following is the message I'm getting at runtime

net.sf.jasperreports.engine.JRException: Error compiling report java source files : D:\Eclipse Work\fitup\StockReport_1144174836523_631297.java

As i'm developing my application using Eclipse 3.1 so i have also added following five external jars in my application

jasperreports-1.2.0.jar,
commons-beanutils-1.5.jar,
commons-collections-2.1.jar,
commons-digester-1.7.jar,
commons-logging-1.0.2.jar.

I would really appreciate if you will help me as I have never worked in Jasper Reports before.

Regards

Shahan





Comment
Watch Question

Mick BarryJava Developer
CERTIFIED EXPERT
Top Expert 2010

Commented:
can you post the full stack trace
When you installed jasperreports and iReport, did you install just the .jar file or from the project file (jasperreports-1.2.0-project.zip)?

There may be (and have been in past jasperreport versions) version dependencies on the supporing .jar files (i.e. the .jar files you listed above and others). Make sure you are using the versions supplied in the project file.

In particular there was a dependency on the xerces.jar a while back that caused this error...

Author

Commented:
Dear DeanHorak and Objects
                          Thankyou for your post, I downloaded iReport 1.2-zip and the above mentioned jar files have been taken from the lib directory of extracted iReport Folder. I havenot added any other jar file like xerces.jar in my project and niether this thing mentioned in any of the tutorials on ireport.sourceforge.net.

Following is the Stack Trace requested by Objects

java.io.IOException: CreateProcess: javac -classpath "D:\Eclipse Work\fitup;C:\Documents and Settings\Administrator\Desktop\EclipseCanada\Eclipse 3.1\eclipse\plugins\org.aspectj.runtime_1.5.0.20050916181211\aspectjrt.jar;C:\Documents and Settings\Administrator\My Documents\Eclipse Work\fitup\lib\jcalendar.jar;C:\Documents and Settings\Administrator\My Documents\Eclipse Work\fitup\lib\Calculator.jar;D:\Eclipse Work\fitup\lib\commons-beanutils-1.5.jar;D:\Eclipse Work\fitup\lib\commons-collections-2.1.jar;D:\Eclipse Work\fitup\lib\commons-digester-1.7.jar;D:\Eclipse Work\fitup\lib\commons-logging-1.0.2.jar;D:\Eclipse Work\fitup\lib\jasperreports-1.2.0.jar" "D:\Eclipse Work\fitup\StockReport_1144194831438_339456.java" error=2
      at java.lang.Win32Process.create(Native Method)
      at java.lang.Win32Process.<init>(Unknown Source)
      at java.lang.Runtime.execInternal(Native Method)
      at java.lang.Runtime.exec(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)
      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:131)
      at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:211)
      at ui.BaseController$SearchListener.actionPerformed(BaseController.java:82)
      at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
      at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
      at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
      at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
      at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
      at java.awt.Component.processMouseEvent(Unknown Source)
      at java.awt.Component.processEvent(Unknown Source)
      at java.awt.Container.processEvent(Unknown Source)
      at java.awt.Component.dispatchEventImpl(Unknown Source)
      at java.awt.Container.dispatchEventImpl(Unknown Source)
      at java.awt.Component.dispatchEvent(Unknown Source)
      at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
      at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
      at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
      at java.awt.Container.dispatchEventImpl(Unknown Source)
      at java.awt.Window.dispatchEventImpl(Unknown Source)
      at java.awt.Component.dispatchEvent(Unknown Source)
      at java.awt.EventQueue.dispatchEvent(Unknown Source)
      at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.run(Unknown Source)

NESTED BY :
java.io.IOException: CreateProcess: javac -classpath "D:\Eclipse Work\fitup;C:\Documents and Settings\Administrator\Desktop\EclipseCanada\Eclipse 3.1\eclipse\plugins\org.aspectj.runtime_1.5.0.20050916181211\aspectjrt.jar;C:\Documents and Settings\Administrator\My Documents\Eclipse Work\fitup\lib\jcalendar.jar;C:\Documents and Settings\Administrator\My Documents\Eclipse Work\fitup\lib\Calculator.jar;D:\Eclipse Work\fitup\lib\commons-beanutils-1.5.jar;D:\Eclipse Work\fitup\lib\commons-collections-2.1.jar;D:\Eclipse Work\fitup\lib\commons-digester-1.7.jar;D:\Eclipse Work\fitup\lib\commons-logging-1.0.2.jar;D:\Eclipse Work\fitup\lib\jasperreports-1.2.0.jar" "D:\Eclipse Work\fitup\StockReport_1144194831438_339456.java" error=2
      at java.lang.Win32Process.create(Native Method)
      at java.lang.Win32Process.<init>(Unknown Source)
      at java.lang.Runtime.execInternal(Native Method)
      at java.lang.Runtime.exec(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)
      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:131)
      at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:211)
      at ui.BaseController$SearchListener.actionPerformed(BaseController.java:82)
      at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
      at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
      at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
      at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
      at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
      at java.awt.Component.processMouseEvent(Unknown Source)
      at java.awt.Component.processEvent(Unknown Source)
      at java.awt.Container.processEvent(Unknown Source)
      at java.awt.Component.dispatchEventImpl(Unknown Source)
      at java.awt.Container.dispatchEventImpl(Unknown Source)
      at java.awt.Component.dispatchEvent(Unknown Source)
      at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
      at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
      at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
      at java.awt.Container.dispatchEventImpl(Unknown Source)
      at java.awt.Window.dispatchEventImpl(Unknown Source)
      at java.awt.Component.dispatchEvent(Unknown Source)
      at java.awt.EventQueue.dispatchEvent(Unknown Source)
      at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.run(Unknown Source)

NESTED BY :
net.sf.jasperreports.engine.JRException: Error compiling report java source files : D:\Eclipse Work\fitup\StockReport_1144194831438_339456.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:131)
      at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:211)
      at ui.BaseController$SearchListener.actionPerformed(BaseController.java:82)
      at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
      at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
      at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
      at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
      at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
      at java.awt.Component.processMouseEvent(Unknown Source)
      at java.awt.Component.processEvent(Unknown Source)
      at java.awt.Container.processEvent(Unknown Source)
      at java.awt.Component.dispatchEventImpl(Unknown Source)
      at java.awt.Container.dispatchEventImpl(Unknown Source)
      at java.awt.Component.dispatchEvent(Unknown Source)
      at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
      at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
      at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
      at java.awt.Container.dispatchEventImpl(Unknown Source)
      at java.awt.Window.dispatchEventImpl(Unknown Source)
      at java.awt.Component.dispatchEvent(Unknown Source)
      at java.awt.EventQueue.dispatchEvent(Unknown Source)
      at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknonet.sf.jasperreports.engine.JRException: Error compiling report java source files : D:\Eclipse Work\fitup\StockReport_1144194831438_339456.java
wn Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.io.IOException: CreateProcess: javac -classpath "D:\Eclipse Work\fitup;C:\Documents and Settings\Administrator\Desktop\EclipseCanada\Eclipse 3.1\eclipse\plugins\org.aspectj.runtime_1.5.0.20050916181211\aspectjrt.jar;C:\Documents and Settings\Administrator\My Documents\Eclipse Work\fitup\lib\jcalendar.jar;C:\Documents and Settings\Administrator\My Documents\Eclipse Work\fitup\lib\Calculator.jar;D:\Eclipse Work\fitup\lib\commons-beanutils-1.5.jar;D:\Eclipse Work\fitup\lib\commons-collections-2.1.jar;D:\Eclipse Work\fitup\lib\commons-digester-1.7.jar;D:\Eclipse Work\fitup\lib\commons-logging-1.0.2.jar;D:\Eclipse Work\fitup\lib\jasperreports-1.2.0.jar" "D:\Eclipse Work\fitup\StockReport_1144194831438_339456.java" error=2
      at java.lang.Win32Process.create(Native Method)
      at java.lang.Win32Process.<init>(Unknown Source)
      at java.lang.Runtime.execInternal(Native Method)
      at java.lang.Runtime.exec(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)
      ... 28 more
Apr 5, 2006 12:53:51 AM ui.BaseController$SearchListener actionPerformed
INFO: Leaving
Apr 5, 2006 12:53:49 AM ui.BaseController$SearchListener actionPerformed
INFO: Entering
java.io.IOException: CreateProcess: javac -classpath "D:\Eclipse Work\fitup;C:\Documents and Settings\Administrator\Desktop\EclipseCanada\Eclipse 3.1\eclipse\plugins\org.aspectj.runtime_1.5.0.20050916181211\aspectjrt.jar;C:\Documents and Settings\Administrator\My Documents\Eclipse Work\fitup\lib\jcalendar.jar;C:\Documents and Settings\Administrator\My Documents\Eclipse Work\fitup\lib\Calculator.jar;D:\Eclipse Work\fitup\lib\commons-beanutils-1.5.jar;D:\Eclipse Work\fitup\lib\commons-collections-2.1.jar;D:\Eclipse Work\fitup\lib\commons-digester-1.7.jar;D:\Eclipse Work\fitup\lib\commons-logging-1.0.2.jar;D:\Eclipse Work\fitup\lib\jasperreports-1.2.0.jar" "D:\Eclipse Work\fitup\StockReport_1144194831438_339456.java" error=2
      at java.lang.Win32Process.create(Native Method)
      at java.lang.Win32Process.<init>(Unknown Source)
      at java.lang.Runtime.execInternal(Native Method)
      at java.lang.Runtime.exec(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)
      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:131)
      at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:211)
      at ui.BaseController$SearchListener.actionPerformed(BaseController.java:82)
      at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
      at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
      at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
      at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
      at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
      at java.awt.Component.processMouseEvent(Unknown Source)
      at java.awt.Component.processEvent(Unknown Source)
      at java.awt.Container.processEvent(Unknown Source)
      at java.awt.Component.dispatchEventImpl(Unknown Source)
      at java.awt.Container.dispatchEventImpl(Unknown Source)
      at java.awt.Component.dispatchEvent(Unknown Source)
      at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
      at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
      at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
      at java.awt.Container.dispatchEventImpl(Unknown Source)
      at java.awt.Window.dispatchEventImpl(Unknown Source)
      at java.awt.Component.dispatchEvent(Unknown Source)
      at java.awt.EventQueue.dispatchEvent(Unknown Source)
      at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.run(Unknown Source)

NESTED BY :
java.io.IOException: CreateProcess: javac -classpath "D:\Eclipse Work\fitup;C:\Documents and Settings\Administrator\Desktop\EclipseCanada\Eclipse 3.1\eclipse\plugins\org.aspectj.runtime_1.5.0.20050916181211\aspectjrt.jar;C:\Documents and Settings\Administrator\My Documents\Eclipse Work\fitup\lib\jcalendar.jar;C:\Documents and Settings\Administrator\My Documents\Eclipse Work\fitup\lib\Calculator.jar;D:\Eclipse Work\fitup\lib\commons-beanutils-1.5.jar;D:\Eclipse Work\fitup\lib\commons-collections-2.1.jar;D:\Eclipse Work\fitup\lib\commons-digester-1.7.jar;D:\Eclipse Work\fitup\lib\commons-logging-1.0.2.jar;D:\Eclipse Work\fitup\lib\jasperreports-1.2.0.jar" "D:\Eclipse Work\fitup\StockReport_1144194831438_339456.java" error=2
      at java.lang.Win32Process.create(Native Method)
      at java.lang.Win32Process.<init>(Unknown Source)
      at java.lang.Runtime.execInternal(Native Method)
      at java.lang.Runtime.exec(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)
      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:131)
      at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:211)
      at ui.BaseController$SearchListener.actionPerformed(BaseController.java:82)
      at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
      at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
      at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
      at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
      at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
      at java.awt.Component.processMouseEvent(Unknown Source)
      at java.awt.Component.processEvent(Unknown Source)
      at java.awt.Container.processEvent(Unknown Source)
      at java.awt.Component.dispatchEventImpl(Unknown Source)
      at java.awt.Container.dispatchEventImpl(Unknown Source)
      at java.awt.Component.dispatchEvent(Unknown Source)
      at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
      at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
      at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
      at java.awt.Container.dispatchEventImpl(Unknown Source)
      at java.awt.Window.dispatchEventImpl(Unknown Source)
      at java.awt.Component.dispatchEvent(Unknown Source)
      at java.awt.EventQueue.dispatchEvent(Unknown Source)
      at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.run(Unknown Source)

NESTED BY :
net.sf.jasperreports.engine.JRException: Error compiling report java source files : D:\Eclipse Work\fitup\StockReport_1144194831438_339456.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:131)
      at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:211)
      at ui.BaseController$SearchListener.actionPerformed(BaseController.java:82)
      at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
      at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
      at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
      at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
      at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
      at java.awt.Component.processMouseEvent(Unknown Source)
      at java.awt.Component.processEvent(Unknown Source)
      at java.awt.Container.processEvent(Unknown Source)
      at java.awt.Component.dispatchEventImpl(Unknown Source)
      at java.awt.Container.dispatchEventImpl(Unknown Source)
      at java.awt.Component.dispatchEvent(Unknown Source)
      at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
      at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
      at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
      at java.awt.Container.dispatchEventImpl(Unknown Source)
      at java.awt.Window.dispatchEventImpl(Unknown Source)
      at java.awt.Component.dispatchEvent(Unknown Source)
      at java.awt.EventQueue.dispatchEvent(Unknown Source)
      at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknonet.sf.jasperreports.engine.JRException: Error compiling report java source files : D:\Eclipse Work\fitup\StockReport_1144194831438_339456.java
wn Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.io.IOException: CreateProcess: javac -classpath "D:\Eclipse Work\fitup;C:\Documents and Settings\Administrator\Desktop\EclipseCanada\Eclipse 3.1\eclipse\plugins\org.aspectj.runtime_1.5.0.20050916181211\aspectjrt.jar;C:\Documents and Settings\Administrator\My Documents\Eclipse Work\fitup\lib\jcalendar.jar;C:\Documents and Settings\Administrator\My Documents\Eclipse Work\fitup\lib\Calculator.jar;D:\Eclipse Work\fitup\lib\commons-beanutils-1.5.jar;D:\Eclipse Work\fitup\lib\commons-collections-2.1.jar;D:\Eclipse Work\fitup\lib\commons-digester-1.7.jar;D:\Eclipse Work\fitup\lib\commons-logging-1.0.2.jar;D:\Eclipse Work\fitup\lib\jasperreports-1.2.0.jar" "D:\Eclipse Work\fitup\StockReport_1144194831438_339456.java" error=2
      at java.lang.Win32Process.create(Native Method)
      at java.lang.Win32Process.<init>(Unknown Source)
      at java.lang.Runtime.execInternal(Native Method)
      at java.lang.Runtime.exec(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)
      ... 28 more
Apr 5, 2006 12:53:51 AM ui.BaseController$SearchListener actionPerformed
INFO: Leaving



Hope to hear soon from you
Regards
ShaniG
Java Developer
CERTIFIED EXPERT
Top Expert 2010
Commented:
Looks like it may be failing to find javac, is it in your path?
do you have JAVA_HOME set to point to your jdk?

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.