How do you set up Eclipse and Birt Runtime together

Hi, 


 


I am hoping someone can help me with the following:


 


I just installed a fresh copy of eclipse (windows 64bit neon3) and a fresh copy of birt runtime engine (4.6).


When I try to generate a pdf report via runtime birt jar, I get the following message


 


A JNI error had occured, please check your installation and try again.  


 


and the following error at the console:


 

Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/birt/core/exception/BirtException

at java.lang.Class.getDeclaredMethods0(Native Method)

at java.lang.Class.privateGetDeclaredMethods(Unknown Source)

at java.lang.Class.privateGetMethodRecursive(Unknown Source)

at java.lang.Class.getMethod0(Unknown Source)

at java.lang.Class.getMethod(Unknown Source)

at sun.launcher.LauncherHelper.validateMainClass(Unknown Source)

at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)

Caused by: java.lang.ClassNotFoundException: org.eclipse.birt.core.exception.BirtException

at java.net.URLClassLoader.findClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

... 7 more

 

 


This looks like a jar is missing with a class but I find it hard to believe as ALL of birt jars are on path. 


 


I know for a fact there is nothing wrong with the code.  It used to run great on a different machine.  The problem is with the setup.  Anyone had to deal with similar problem?  What am I missing here?  


 


Thanks,

Comments

  • VirgilVirgil Administrator EM admin

    There is a known issue with the example viewer shipped with 4.6. Please use the latest 4.7 version located at http://download.eclipse.org/birt/downloads/build.php?build=M-R1-4.7.0RC5-201706222054


    Virgil Dodson
    OpenText Analytics Developer Community
    https://forums.opentext.com/forums/categories/analytics

  • edited August 2017

    Thanks, #Virgil, for the heads up!

    I will give it a try in just a few and will send another update.

    In the meantime, I have couple questions...

    1) I thought 4.6 is the latest version of birt, since it comes up by default on the webpage.


    2) also, why I see no other mentions of this problem if this is a well known bug. WhIle, I don't expect actuate to report it, I would think the problem is reproducible with other users, but I see no mention of this issue anywhere.

    3) what exactly does the example viewer have to do with the generic birt engine kernel. an arbitrary report should generate with or without the example viewer, correct?


    Thanks!


  • edited August 2017

    Hi, #Virgil, 


    Just wanted to give you an update on getting Birt Engine to run.  


    So I downloaded 3 libraries and the results are:


    1) birt_runtime_450 = everything works by putting /lib/ folder on path


    2) birt_runtime_460 = does not work and triggers the error that started this thread


    3) birt_runtime_470 = everything works by putting /lib/ folder on path


     


    I suppose my question is:  is it at all possible to get birt_runtime 4.6.0 to work?  If not, then why is the non-working  build is the only build that is offered on birt's main page?


    if yes, what can I do to mitigate this error locally (on a computer)?  


     


    Thanks,


  • VirgilVirgil Administrator EM admin
    edited September 2017

    The known issue with the BIRT 4.6.0 viewer I was referring to is on Bugzilla at https://bugs.eclipse.org/bugs/show_bug.cgi?id=497356 but if you are not using the example viewer then it sounds like another problem.  BIRT 4.6.0 is the latest official release but 4.7.0 RC5 is the newest milestone build from June 22, 2017 and seems to fix your problem.  If you must use BIRT 4.6.0 then be sure to check the full download page at http://download.eclipse.org/birt/downloads/build.php?build=R-R1-4.6.0-201606072112 as there are 2 different runtimes to try.  The birt-dev mailing list (https://www.eclipse.org/birt/community/) is the place for communicating with the BIRT development team and Bugzilla is where you can search for known issues and report any new issues you find.


    Virgil Dodson
    OpenText Analytics Developer Community
    https://forums.opentext.com/forums/categories/analytics



  • The known issue with the BIRT 4.6.0 viewer I was referring to is on Bugzilla at https://bugs.eclipse.org/bugs/show_bug.cgi?id=497356 but if you are not using the example viewer then it sounds like another problem.  BIRT 4.6.0 is the latest official release but 4.7.0 RC5 is the newest milestone build from June 22, 2017 and seems to fix your problem.  If you must use BIRT 4.6.0 then be sure to check the full download page at http://download.eclipse.org/birt/downloads/build.php?build=R-R1-4.6.0-201606072112 as there are 2 different runtimes to try.  The birt-dev mailing list (https://www.eclipse.org/birt/community/) is the place for communicating with the BIRT development team and Bugzilla is where you can search for known issues and report any new issues you find.




     


    Hi, #virgil, 


     


    yes I definitely do not use the example viewer and do not observe the error in the bug report you mentioned.  


    The error must be local to a pc.  I actually have two laptops and did identical installations (two under windows and two under linux).  All of them had that JNI error for birt 4.6.0.  None of then had any problems with 4.5.0 or 4.7.0


     


    Regarding Linux, can birt work with both openJdk and oracle java? 


     


    Regarding windows, are there any other .jars that I have to put on path other than what is contained in the /ReportEngine/lib/  folder?


     


    Regarding the JNI error trace stack:  
    Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/birt/core/exception/BirtException


     


    In which .jar does the BirtException reside in?  Could it be that I am somehow not putting it on path?  


     


    Thanks,

  • VirgilVirgil Administrator EM admin

    glad to see BIRT 4.7.0 is working in Windows and Linux. I don't have answers for your other questions but you should try asking them in the forum as seperate topics.


     


    Virgil


    Virgil Dodson
    OpenText Analytics Developer Community
    https://forums.opentext.com/forums/categories/analytics

  • yes I definitely do not use the example viewer and do not observe the error in the bug report you mentioned.

  • yes I definitely do not use the example viewer and do not observe the error in the bug report you mentioned.

    https://www.arydigital.tv/videos/category/shiza/

Sign In or Register to comment.