Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
Developing Analytics Applications
Launching from Eclipse is fine, while Maven/tycho Build is raising ClassNotFoundException
Migrateduser
<p>Hello Folks (i write this post the second time, got lost on last one - doh!)</p>
<p> </p>
<p>i'm using BIRT 4.3 for my RCP Application (Eclipse 4.3)</p>
<p>when i run the application from within the IDE (launch product) birt reports are displaying fine in the viewer.</p>
<p> </p>
<p>but when i now run an export (via Maven/Tycho pom.xml) all builds finish as Sucess!</p>
<p>BUT when i launch the exported application and go to the birt viewer i get the following exception:</p>
<pre class="_prettyXprint _lang-">
java.lang.ClassNotFoundException: org.mozilla.javascript.ScriptOrFnNode cannot be found by org.eclipse.birt.data_4.3.2.v20140211-1400
</pre>
<p>my target definition is a subset of what i got in my parent pom.xml, so there should be even more stuff available.</p>
<p> </p>
<p>i'm including the BIRT update site as repository in my pom</p>
<pre class="_prettyXprint _lang-">
<repository>
<id>birt</id>
<layout>p2</layout>
<url>http://download.eclipse.org/birt/update-site/4.3</url>
</repository>
</pre>
<p>same in my target def.</p>
<p> </p>
<p>side-note: if i add a line to test in my ViewerView - just to see if its available - its fine, no errors nor warnings:</p>
<pre class="_prettyXprint _lang-">
ScriptOrFnNode testNode = new ScriptOrFnNode(ScriptOrFnNode.ATTRIBUTE_FLAG);
</pre>
<p>EDIT: compiling with tycho fails if i add this line! ^^^ (obvious, but i do not need to launch the app to see the exception from birt then)</p>
<p> </p>
<p>the feature <strong>org.eclipse.birt.chart</strong> is included in my feature definition, so the org.mozilla.javascript should be included, as its included in this feature.</p>
<p> </p>
<p>what am i doing wrong/missing? (afaik the update site should include all birt needs to be run?!)</p>
<p>iff you need more information let me know!</p>
Find more posts tagged with
Comments
There are no comments yet