# Use Weka Library in bnd

**URL:** <https://bnd.discourse.group/t/use-weka-library-in-bnd/321>\
**Category:** GENERAL\
**Created:** [July 12, 2023, 5:23am UTC](https://bnd.discourse.group/t/use-weka-library-in-bnd/321 "2023-07-12T05:23:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Majidniko](https://yyz2.discourse-cdn.com/free1/user_avatar/bnd.discourse.group/majidniko/32/187_2.png) [@Majidniko](https://bnd.discourse.group/u/Majidniko)\
**Post date:** [July 12, 2023, 5:23am UTC](https://bnd.discourse.group/t/use-weka-library-in-bnd/321/1 "2023-07-12T05:23:47Z")

</div>

Hi all  
I have a problem with a class in weka when I use it on bnd in openems ,  
most of class found in resolve and run but classification not defined in build and I get this error:

org.osgi.framework.BundleException: Unable to resolve io.openems.edge.controller.ess.inteligentcontroller [217](R 217.0): missing requirement [io.openems.edge.controller.ess.inteligentcontroller [217](R 217.0)] osgi.wiring.package; (osgi.wiring.package=weka.classifiers.trees) Unresolved requirements: [[io.openems.edge.controller.ess.inteligentcontroller [217](R 217.0)] osgi.wiring.package; ( **osgi.wiring.package=weka.classifiers.tree** s)]

and my pom file:

```
	<dependency>
		<groupId>nz.ac.waikato.cms.weka.thirdparty</groupId>
		<artifactId>java-cup-11b</artifactId>
		<version>2015.03.26</version>
	</dependency>
	<!--
	https://mvnrepository.com/artifact/nz.ac.waikato.cms.weka.thirdparty/java-cup-11b-runtime -->
	<dependency>
		<groupId>nz.ac.waikato.cms.weka.thirdparty</groupId>
		<artifactId>java-cup-11b-runtime</artifactId>
		<version>2015.03.26</version>
	</dependency>
	<dependency>
		<groupId>nz.ac.waikato.cms.weka</groupId>
		<artifactId>scriptingClassifiers</artifactId>
		<version>1.0.2</version>
	</dependency>
	<dependency>
		<groupId>nz.ac.waikato.cms.weka</groupId>
		<artifactId>kfPMMLClassifierScoring</artifactId>
		<version>1.0.3</version>
	</dependency>
	<!--
	https://mvnrepository.com/artifact/nz.ac.waikato.cms.weka.thirdparty/bounce -->
	<dependency>
		<groupId>nz.ac.waikato.cms.weka.thirdparty</groupId>
		<artifactId>bounce</artifactId>
		<version>0.18</version>
	</dependency>
	<dependency>
		<groupId>nz.ac.waikato.cms.weka</groupId>
		<artifactId>weka-dev</artifactId>
		<version>3.9.6</version>
	</dependency>

```

anyone can guide me to resolve this? thanks.

---

<div class="post-metadata">

**Author:** ![pkriens](https://yyz2.discourse-cdn.com/free1/user_avatar/bnd.discourse.group/pkriens/32/3_2.png) [@pkriens](https://bnd.discourse.group/u/pkriens)\
**Post date:** [July 12, 2023, 9:26am UTC](https://bnd.discourse.group/t/use-weka-library-in-bnd/321/2 "2023-07-12T09:26:14Z")

</div>

The missing package seems to be `weka.classifiers.trees` which is used by the bundle `io.openems.edge.controller.ess.inteligentcontroller` …

Verify that that package is actually exported by a bundle on your class path … In the workspace model we have the resolution view but I do not think it works in the maven world.
