Results 1 to 7 of 7

Thread: Java with Report

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2005
    Posts
    167

    Question Java with Report

    I start learning Java Programming. I develop small java program that connect to database. Now I want to create a report for this application. for example, report of monthly stock out. I know we use Crystal Report in VB.NET. How about Java? Thanks.

  2. #2
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: Java with Report

    http://sourceforge.net/project/showf...ckage_id=28579
    It's has a great documentation too
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

  3. #3
    New Member
    Join Date
    Jul 2006
    Posts
    6

    Re: Java with Report

    There have many reports tool in java,for example,stylereprot,jreport.If you want to use a free and open source report tool,I think ireport is a good choice.

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Oct 2005
    Posts
    167

    Question Re: Java with Report

    Thank all. I have one more question. Can we use Crystal Report with Java? if yes, how?

  5. #5
    New Member
    Join Date
    Jul 2006
    Posts
    6

    Re: Java with Report

    Quote Originally Posted by ychhuong
    Thank all. I have one more question. Can we use Crystal Report with Java? if yes, how?
    yes,Of course.
    I have generated a jsp report with crystal report

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Oct 2005
    Posts
    167

    Question Re: Java with Report

    Is there any sample of using Crystal Report with Java? I have tried JasperReport, but when I run it i alway got error. Here is my code.

    VB Code:
    1. try{
    2.    
    3. JasperReport jasperReport =               JasperCompileManager.compileReport("HelloReportWorld.jrxml");
    4. }
    5. catch(JRException e){
    6.     e.printStackTrace();
    7. }

    Error Message:

    VB Code:
    1. Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/digester/Digester
    2.     at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:142)
    3.     at Factoriel.main(Factoriel.java:12)

  7. #7
    New Member
    Join Date
    Jul 2006
    Posts
    6

    Re: Java with Report

    JasperReport is a free and open source report tool based on java.but it's only a java API and hasn't GUI designer just like crystal report,moreover,the tutorial of jasperreport isn't free.
    But there have so many free jasperreport tutorials,just like below link
    http://www.developerzone.biz/index.p...98ab874e2e6a10

    If you need a free designer,download ireport.

    As to the error,you only need copy all jar files under iib directory into classpath,the problem will be sovle.

    There also have many good java reports tool,like jreport and stylereport
    Last edited by jetbrains; Jul 6th, 2006 at 01:08 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width