Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Other Java Products and Servers and the fly likes Call Crystal Reports from Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "Call Crystal Reports from Java" Watch "Call Crystal Reports from Java" New topic
Author

Call Crystal Reports from Java

jeremia tirta
Greenhorn

Joined: Apr 22, 2010
Posts: 1
can someone help me please....
iam first time to call Crystalreports from JAVA
this is part of code:

private static final String REPORT_NAME = "jeremia.rpt";

public static void launchApplication() {

try {

//Open report.
ReportClientDocument reportClientDoc = new ReportClientDocument();
if (reportClientDoc.isOpen()){
System.out.println("Sudah terbuka");
}else{
reportClientDoc.open(REPORT_NAME, 1);
}

i try to debuging this code, but until code "reportClientDoc.open(REPORT_NAME, 1); "
i get that error :

Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: org/apache/log4j/Logger
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.<clinit>(Unknown Source)
at java.lang.Class.forName0(Native Method)

Iam using NETBEANS IDE to compile it.
What does it means, of that error?
Thanks
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61095
    
  66

Please KeepItDown.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Call Crystal Reports from Java