Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Call Crystal Reports from Java

 
jeremia tirta
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64708
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please KeepItDown.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic