This service is archived, please use www.eclipse.org/forums


Home » Capella » Capella Studio » adding external jars in VP
adding external jars in VP [message #3532] Wed, 18 September 2019 08:46 Go to next message
jmorane is currently offline  jmorane
Messages: 63
Registered: May 2019
Member
Hello everyone,

I try to use apache POI to directly write in a excel from a VP.

I used rules and services, and configure the build path to the project where the rules are defined ( org.polarsys.capella.vp.vpname.af ) to add the reference to the external JAR.

I can import the desired items. However, when running, the error "java.lang.NoClassDefFoundError: org/apache/poi/xssf/usermodel/XSSFWorkbook" is triggered.

My guess is that I have to add the reference to the JAR to other project. Is that correct ?

regards,

Re: adding external jars in VP [message #3656 is a reply to message #3532] Fri, 08 November 2019 03:29 Go to previous messageGo to next message
felix.dorner.gmail.com is currently offline  felix.dorner.gmail.com
Messages: 117
Registered: November 2015
Senior Member
When developing for capella, all your projects must be plugin projects. You _never_ configure the build path manually for a plugin project. You manage it via its manifest. (Like in my answer to your other question). In this case, you have to go to the 'runtime' tab of the manifest editor, and add the jar to the list of libraries (on the bottom right part of the runtime tab).
Re: adding external jars in VP [message #3657 is a reply to message #3532] Fri, 08 November 2019 09:03 Go to previous messageGo to next message
yvan.lussaud.obeo.fr is currently offline  yvan.lussaud.obeo.fr
Messages: 43
Registered: October 2017
Member
You can find an OSGi version of POI in the following github repository:
https://github.com/ObeoNetwork/Bits

Or directly use the builded bundle as a dependency, see this update site:

http://obeo-networkaggregation-releases.s3-website-eu-west-1 .amazonaws.com/bits/master/thirdparties

for older version of POI you can use older releases of Bits:

http://obeo-networkaggregation-releases.s3-website-eu-west-1 .amazonaws.com/bits/0.12.0/thirdparties

for instance. A complete list of releases: https://github.com/ObeoNetwork/Bits/releases

This is the version of POI used in M2Doc, the word document generator.
Re: adding external jars in VP [message #3658 is a reply to message #3657] Fri, 08 November 2019 10:37 Go to previous message
felix.dorner.gmail.com is currently offline  felix.dorner.gmail.com
Messages: 117
Registered: November 2015
Senior Member
Why is Obeo not maintaining that in Eclipse Orbit?
Previous Topic: getName() method ?
Next Topic: How to change components appearance from viewpoint
Goto Forum:
  


Current Time: Sat Mar 28 04:10:58 EST 2020

Total time taken to generate the page: 0.01621 seconds