Hi,
sorry for the delay in answering; I am missing spare time these days. Embedding external libraries that do not come with the correct OSGi headers can be sometimes difficult. Do you have a source for downloading the jar file - or better the maven coordinates to integrate it in the pom.xml file?
Be aware that you might also run into licensing issues. From what I see, WEKA is licensed as GPL, which ‘might’ be incompatible with OpenEMS’ EPL - but I am not a lawyer (see Eclipse Public License - Wikipedia).
Alternatively to directly embedding an external library, you could also keep the services separated and let them talk to each other with some defined (REST-) Api. See e.g. this Solcast Predictor as an example:
The author is also active here in the Community forum: Veröffentlichung Controller - #5 by stefan.feilmeier
Regards,
Stefan