How do you set up Eclipse and Birt Runtime together

newbie321
edited February 11, 2022 in Analytics #1
<p>Hi, </p>
<p> </p>
<p>I am hoping someone can help me with the following:</p>
<p> </p>
<p>I just installed a fresh copy of eclipse (windows 64bit neon3) and a fresh copy of birt runtime engine (4.6).</p>
<p>When I try to generate a pdf report via runtime birt jar, I get the following message</p>
<p> </p>
<p>A JNI error had occured, please check your installation and try again.  </p>
<p> </p>
<p>and the following error at the console:</p>
<div> </div>
<div>Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/birt/core/exception/BirtException</div>
<div>at java.lang.Class.getDeclaredMethods0(Native Method)</div>
<div>at java.lang.Class.privateGetDeclaredMethods(Unknown Source)</div>
<div>at java.lang.Class.privateGetMethodRecursive(Unknown Source)</div>
<div>at java.lang.Class.getMethod0(Unknown Source)</div>
<div>at java.lang.Class.getMethod(Unknown Source)</div>
<div>at sun.launcher.LauncherHelper.validateMainClass(Unknown Source)</div>
<div>at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)</div>
<div>Caused by: java.lang.ClassNotFoundException: org.eclipse.birt.core.exception.BirtException</div>
<div>at java.net.URLClassLoader.findClass(Unknown Source)</div>
<div>at java.lang.ClassLoader.loadClass(Unknown Source)</div>
<div>at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)</div>
<div>at java.lang.ClassLoader.loadClass(Unknown Source)</div>
<div>... 7 more</div>
<div> </div>
<p> </p>
<p>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. </p>
<p> </p>
<p>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?  </p>
<p> </p>
<p>Thanks,</p>

Comments

  • <p>There is a known issue with the example viewer shipped with 4.6. Please use the latest 4.7 version located at <a data-ipb='nomediaparse' href='http://download.eclipse.org/birt/downloads/build.php?build=M-R1-4.7.0RC5-201706222054'>http://download.eclipse.org/birt/downloads/build.php?build=M-R1-4.7.0RC5-201706222054</a></p&gt;
    Warning No formatter is installed for the format ipb
  • newbie321
    edited August 31, 2017 #3
    <p>Thanks, #Virgil, for the heads up!<br>
    I will give it a try in just a few and will send another update.<br>
    In the meantime, I have couple questions...<br>
    1) I thought 4.6 is the latest version of birt, since it comes up by default on the webpage.<br><br>
    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.<br>
    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?<br><br>
    Thanks!</p>
  • newbie321
    edited August 31, 2017 #4
    <p>Hi, #<span style="color:rgb(119,119,119);font-family:'Source Sans Pro', sans-serif;font-size:12px;text-align:center;">Virgil</span>, </p>
    <p>Just wanted to give you an update on getting Birt Engine to run.  </p>
    <p>So I downloaded 3 libraries and the results are:</p>
    <p>1) birt_runtime_450 = everything works by putting /lib/ folder on path</p>
    <p>2) birt_runtime_460 = does not work and triggers the error that started this thread</p>
    <p>3) birt_runtime_470 = everything works by putting /lib/ folder on path</p>
    <p> </p>
    <p>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?</p>
    <p>if yes, what can I do to mitigate this error locally (on a computer)?  </p>
    <p> </p>
    <p>Thanks,</p>
  • Virgil Dodson
    Virgil Dodson E admin
    edited September 1, 2017 #5
    <p>The known issue with the BIRT 4.6.0 viewer I was referring to is on Bugzilla at <a data-ipb='nomediaparse' href='https://bugs.eclipse.org/bugs/show_bug.cgi?id=497356'>https://bugs.eclipse.org/bugs/show_bug.cgi?id=497356</a> 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 <a data-ipb='nomediaparse' href='http://download.eclipse.org/birt/downloads/build.php?build=R-R1-4.6.0-201606072112'>http://download.eclipse.org/birt/downloads/build.php?build=R-R1-4.6.0-201606072112</a&gt; as there are 2 different runtimes to try.  The birt-dev mailing list (<a>https://www.eclipse.org/birt/community/) is</a> 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.</p>
    Warning No formatter is installed for the format ipb
  • <blockquote class="ipsBlockquote" data-author="Virgil" data-cid="148254" data-time="1504273439">
    <div>
    <p>The known issue with the BIRT 4.6.0 viewer I was referring to is on Bugzilla at <a data-ipb='nomediaparse' href='https://bugs.eclipse.org/bugs/show_bug.cgi?id=497356'>https://bugs.eclipse.org/bugs/show_bug.cgi?id=497356</a> 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 <a data-ipb='nomediaparse' href='http://download.eclipse.org/birt/downloads/build.php?build=R-R1-4.6.0-201606072112'>http://download.eclipse.org/birt/downloads/build.php?build=R-R1-4.6.0-201606072112</a&gt; as there are 2 different runtimes to try.  The birt-dev mailing list (<a>https://www.eclipse.org/birt/community/) is</a> 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.</p>
    </div>
    </blockquote>
    <p> </p>
    <p>Hi, #virgil, </p>
    <p> </p>
    <p>yes I definitely do not use the example viewer and do not observe the error in the bug report you mentioned.  </p>
    <p>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</p>
    <p> </p>
    <p>Regarding Linux, can birt work with both openJdk and oracle java? </p>
    <p> </p>
    <p>Regarding windows, are there any other .jars that I have to put on path other than what is contained in the /ReportEngine/lib/  folder?</p>
    <p> </p>
    <p>Regarding the JNI error trace stack:  <br><span style="color:rgb(40,40,40);font-family:'Source Sans Pro', sans-serif;">Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/birt/core/exception/BirtException</span></p>
    <p> </p>
    <p><span style="color:rgb(40,40,40);font-family:'Source Sans Pro', sans-serif;">In which .jar does the </span><span style="color:rgb(40,40,40);font-family:'Source Sans Pro', sans-serif;">BirtException reside in?  Could it be that I am somehow not putting it on path?  </span></p>
    <p> </p>
    <p><span style="color:rgb(40,40,40);font-family:'Source Sans Pro', sans-serif;">Thanks,</span></p>
  • <p>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.</p>
    <p> </p>
    <p>Virgil</p>
    Warning No formatter is installed for the format ipb
  • 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/