Add third-party jar to URCap: Missing requirements

Thank you very much for the replay and help.
I’ll try this out and make some research about “com.ms.awt”.

The answer of thomas gave me the correct hints:
The line " osgi.wiring.package=com.ms.awt" inside the error message is important as it shows which elements have to be added to the Import-Packages tag. When I add com.ms.awt it shows me the same error message again, but with a different package. I add the package, try again and so on until no more error messages appear.
Then I had to make some changes to the syntax (found out by google) and it works now. :slightly_smiling_face:

So my complete pom looks like this:
<Import-Package> com.ur.urcap.api*;version="[1.3.0,2.0.0)", javax.media*;resolution:=optional, com.ms.awt*;resolution:=optional, com.ms.net.wininet*;resolution:=optional, com.ms.security*;resolution:=optional, com.sun.net.ssl.internal.ssl*;resolution:=optional, netscape.security*;resolution:=optional, sun.audio*;resolution:=optional, sun.awt.image*;resolution:=optional, * </Import-Package>

<Embed-Dependency> !javax.media, !org.osgi.core, !com.ur.urcap.api, *; scope=compile|runtime </Embed-Dependency>

I had to add only one dependency for jmf:
<dependency> <groupId>javax.media</groupId> <artifactId>jmf</artifactId> <version>2.1.1e</version> </dependency>

2 Likes