Hi everyone,
I am trying to add the Software Toolkit Package as a dependency to my URCap in my pom file. I am adding the following:
<repositories>
<repository>
<id>maven-eclipse-repo</id>
<url>http://maven-eclipse.github.io/maven</url>
</repository>
</repositories>
<dependencies>
...
<dependency>
<groupId>org.eclipse.swt</groupId>
<artifactId>org.eclipse.swt.gtk.linux.x86_64</artifactId>
<version>4.6.1</version>
</dependency>
...
</dependencies>
It compiles without errors, and seems to recognize the dependency. However, at run time when I try to instantiate an object of e.g. org.eclipse.swt.widgets.Shell, I get an error stating:
ERROR [Thread-1] 14:54:33 03/07/18: Error starting bundle.
org.osgi.framework.BundleException: Unable to resolve com.test.base [109](R 109.0): missing requirement
[com.test.base [109](R 109.0)] osgi.wiring.package; (osgi.wiring.package=org.eclipse.swt.widgets) Unresolved
requirements: [[com.test.base [109](R 109.0)] osgi.wiring.package; (osgi.wiring.package=org.eclipse.swt.widgets)]
at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4114)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2111)
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:977)
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:964)
at com.ur.view.polyscope.module.ContributionBinding.startURCapBundles(ContributionBinding.java:52)
at com.ur.view.polyscope.module.ContributionBinding.initialize(ContributionBinding.java:23)
at com.ur.view.polyscope.module.ContributionBinding.registerContributions(ContributionBinding.java:102)
at gui.main.URGUI.bindServices(URGUI.java:471)
at gui.main.URGUI.bindServices(URGUI.java:414)
at gui.main.URGUI.run(URGUI.java:246)
Jul 03, 2018 2:54:33 PM com.steadystate.css.parser.CSSOMParser <init>
WARNING: java.lang.ClassNotFoundException: com.steadystate.css.parser.SACParserCSS21 not found by org.w3c.css.sac [31]
Jul 03, 2018 2:54:33 PM com.steadystate.css.parser.CSSOMParser <init>
WARNING: using the default 'SACParserCSS21' instead
I can’t seem to find other in here with the same problem. Does anyone have any clue as to what might be wrong?
My system specs:
Ubuntu 16.04, 64 bit
URCaps sdk-1.3.55
UR Offline Simulator - ursim-3.6.0.30512
Java: java-8-openjdk-amd64
Thanks in advance.
Best Regards, Thomas