One step forward, and then stepped on a land mine

0

I've been trying to run a simple Java app that will compile a JasperReports report. However, when I try to run it, I keep getting err msgs. First, it was, "JasperCompileManager cannot be resolved". So I added jasperreports-4.1.2.jar to Eclipse's Project | Properties | Java Build Path. Similarly, I added commons-digester-1.7.jar, then commons-logging-1.0.4.jar, then commons-collections-2.1.1.jar, then commons-beanutils-1.8.0.jar

But now I get the mother of all compilation err msgs:

net.sf.jasperreports.engine.JRException

 

: Error compiling report java source files : C:\\EclipseJavaIndigo\\JRSandbox\\FirstReport_1316715202838_55800.java JRJavacCompiler.java:89)JRAbstractClassCompiler.java:63)JRAbstractCompiler.java:188)JasperCompileManager.java:212)JasperCompileManager.java:128)JasperCompileManager.java:87)JRSandbox.java:28)java.io.IOException: Cannot run program "javac": CreateProcess error=2, The system cannot find the file specifiedJRJavacCompiler.java:58)java.io.IOException: CreateProcess error=2, The system cannot find the file specifiedNative Method)

What the deuce!?!

at net.sf.jasperreports.engine.design.JRJavacCompiler.compileClasses(

at net.sf.jasperreports.engine.design.JRAbstractClassCompiler.compileUnits(

at net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(

at net.sf.jasperreports.engine.JasperCompileManager.compileReport(

at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(

at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(

at com.jcp.tds.JRSandbox.JRSandbox.main(

Caused by:

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(

... 6 more

Caused by:

at java.lang.ProcessImpl.create(

at java.lang.ProcessImpl.<init>(Unknown Source)

at java.lang.ProcessImpl.start(Unknown Source)

... 10 more

clayshannon's picture
Joined: Aug 30 2011 - 12:59pm
Last seen: 8 years 1 month ago

0 Answers:

No answers yet
Feedback