473,750 Members | 2,209 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

java compilation error

2 New Member
Hi guys,

I was trying to compile jasper report from java as below:

Expand|Select|Wrap|Line Numbers
  1.     public static void runReport(String databaseName, String userName,
  2.             String password, String reportFile) {
  3.         JasperReport jasperReport;
  4.         JasperPrint jasperPrint;
  5.         try {
  6.             jasperReport = JasperCompileManager
  7.                     .compileReport("C:\\ireport\\pidcif_user.jrxml");
  8.             jasperPrint = JasperFillManager.fillReport(jasperReport,
  9.                     new HashMap(), new JREmptyDataSource());
  10.             JasperExportManager.exportReportToPdfFile(jasperPrint,
  11.                     "C:\\ireport\\pidcif_user.pdf");
  12.         } catch (JRException e) {
  13.             e.printStackTrace();
  14.         }
  15.  
  16.     }
but what I got is the below error message:

Expand|Select|Wrap|Line Numbers
  1. net.sf.jasperreports.engine.JRException: Error compiling report java source files : C:\Apps\Tip40\JavaTest\pidcif32user_1198207904725_975332.java 
  2.     at net.sf.jasperreports.engine.design.JRJavacCompiler.compileClasses(JRJavacCompiler.java:93)
  3.     at net.sf.jasperreports.engine.design.JRAbstractClassCompiler.compileUnits(JRAbstractClassCompiler.java:67)
  4.     at net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:190)
  5.     at net.sf.jasperreports.engine.design.JRDefaultCompiler.compileReport(JRDefaultCompiler.java:105)
  6.     at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:212)
  7.     at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:145)
  8.     at ReportDriver.runReport(ReportDriver.java:81)
  9.     at ReportDriver.main(ReportDriver.java:109)
  10. Caused by: java.io.IOException: CreateProcess: javac -classpath "C:\Apps\Tip40\JavaTest;C:\Program Files\JasperSoft\iReport-2.0.0\lib\jasperreports-1.3.4.jar;C:\Program Files\JasperSoft\iReport-2.0.0\lib\commons-beanutils-1.7.jar;C:\Program Files\JasperSoft\iReport-2.0.0\lib\commons-collections-2.1.jar;C:\Program Files\JasperSoft\iReport-2.0.0\lib\commons-digester-1.7.jar;C:\Program Files\JasperSoft\iReport-2.0.0\lib\commons-dbcp-1.2.1.jar;C:\Program Files\JasperSoft\iReport-2.0.0\lib\commons-logging-1.0.2.jar;C:\Program Files\JasperSoft\iReport-2.0.0\lib\ojdbc14_g.jar" C:\Apps\Tip40\JavaTest\pidcif32user_1198207904725_975332.java error=2
  11.     at java.lang.ProcessImpl.create(Native Method)
  12.     at java.lang.ProcessImpl.<init>(Unknown Source)
  13.     at java.lang.ProcessImpl.start(Unknown Source)
  14.     at java.lang.ProcessBuilder.start(Unknown Source)
  15.     at java.lang.Runtime.exec(Unknown Source)
  16.     at java.lang.Runtime.exec(Unknown Source)
  17.     at net.sf.jasperreports.engine.design.JRJavacCompiler.compileClasses(JRJavacCompiler.java:62)
  18.     ... 7 more
Please help, Thanks !

regards,
Mark
Dec 21 '07 #1
0 1504

Sign in to post your reply or Sign up for a free account.

Similar topics

73
8062
by: RobertMaas | last post by:
After many years of using LISP, I'm taking a class in Java and finding the two roughly comparable in some ways and very different in other ways. Each has a decent size library of useful utilities as a standard portable part of the core language, the LISP package, and the java.lang package, respectively. Both have big integers, although only LISP has rationals as far as I can tell. Because CL supports keyword arguments, it has a wider range...
133
8568
by: Gaurav | last post by:
http://www.sys-con.com/story/print.cfm?storyid=45250 Any comments? Thanks Gaurav
0
3673
by: daniel li | last post by:
I got another convert issue. This is the same project as I posted yesterday, and received a perfect response. The conversion threw a SupportClass for me and one of the data type is CollectionSupport, this is to my understanding to replace Java.Util.Collection. In my code: public EcomWeb.rx_transactions.order.GroverOrder getGroverOrders(EcomWeb.domain.WebOrder webOrder) { System.Console.Out.WriteLine("OrderFactory. getGroverOrders( )...
0
2866
by: dashprasannajit | last post by:
package djvusearching; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import org.apache.lucene.analysis.cjk.CJKAnalyzer; //import org.apache.lucene.analysis.standard.StandardAnalyz er; import org.apache.lucene.queryParser.ParseException;
23
2448
by: Martin Pöpping | last post by:
Hello, I´m relatively new in programming with C#. I want to design a class with can only be used in the same namespace. So I declared this class as protected, but the compiler gives me the following error: Error 1 Namespace elements cannot be explicitly declared as private,
35
3049
by: mwelsh1118 | last post by:
Why doesn't C# allow incremental compilation like Java? Specifically, in Java I can compile single .java files in isolation. The resulting individual .class files can be grouped into .jar files. In C#, there appears to be no analog. I have to compile all my .cs files into a single .dll. This has serious drawbacks in terms of compilation. With Eclipse, I change a file and only that file is re-compiled. With Visual Studio, I
5
6287
by: r035198x | last post by:
Setting up. Getting started To get started with java, one must download and install a version of Sun's JDK (Java Development Kit). The newest release at the time of writting this article is JDK 6 downloadable from http://java.sun.com/javase/downloads/index.jsp. I will be using JDK 5(update 8)
3
6443
by: Ananthu | last post by:
Hi This is my codings in order to access mysql database from java. Codings: import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.Statement;
1
2012
by: mshroom12 | last post by:
Hello to all. I am having difficulty trying to do this Java project using Eclipse. The following is what I have to do. Election Day It's almost election day and the election officials need a program to help tally election results. There are two candidates for office -- Polly Tichen and Ernest Orator. The program's job is to take as input the number of votes each candidate received in each voting precinct and find the total number of votes for...
0
8999
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8836
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9394
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9338
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9256
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6803
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6080
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4712
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4885
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.