Changes from RCP 4.9 to 4.10? [message #1800461] |
Fri, 28 December 2018 14:46  |
Eclipse User |
|
|
|
Hi there,
we have used tycho to build our RCP application for some time now. With a new Eclipse RCP release, we also moved forward with our target platform; normally without any problems.
With the update to the 2018-12 version of Eclipse RCP (4,10), we now have problems to build our 'core' bundle since the build process will be interrupted with the following error message:
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:1.3.0:compile (default-compile) on project org.agentgui.core: Compilation failure: Compilation failure:
[ERROR] D:\20 GIT\01_AgentGui-OSGI\eclipseProjects\org.agentgui\bundles\org.agentgui.core\src\agentgui\envModel\graph\controller\NetworkModelFileImporter.java:
[ERROR] /**
[ERROR] ^
[ERROR] The type org.eclipse.swt.graphics.Image cannot be resolved. It is indirectly referenced from required .class files
[ERROR] 1 problem (1 error)
The funnny or confusing thing is that this class (NetworkModelFileImporter.java) even does not need any SWT stuff and that, if we build based on Eclipse RCP 4.9, we don't have any problems.
If this is a bug, I can report this to Bugzilla too.
If somebody has suggestions, please let me know.
Best wishes,
Christian
|
|
|
|
|
Re: Changes from RCP 4.9 to 4.10? [message #1800709 is a reply to message #1800588] |
Sun, 06 January 2019 14:25   |
Eclipse User |
|
|
|
Could it be of help, to know the dependecies of the bundle? If yes, these are the bundles that are required by the bundle 'org.agentgui.core':
Require-Bundle: de.enflexit.api,
de.enflexit.common,
de.enflexit.oidc,
de.enflexit.oshi,
de.enflexit.db.hibernate,
de.enflexit.db.mySQL,
org.agentgui.lib.scimark,
org.agentgui.lib.jade,
org.agentgui.lib.jFreeChart,
org.agentgui.lib.jung,
org.agentgui.lib.jep,
org.agentgui.lib.googleTranslate,
ch.qos.logback.classic,
ch.qos.logback.core,
org.eclipse.core.runtime,
org.eclipse.ui,
org.eclipse.e4.core.di,
org.eclipse.e4.ui.model.workbench,
org.eclipse.e4.ui.services,
org.eclipse.e4.ui.workbench,
org.eclipse.e4.ui.di,
org.eclipse.equinox.p2.operations,
org.eclipse.equinox.p2.metadata,
org.eclipse.osgi.services
Additionally we import:
javax.inject;,
org.slf4j;
|
|
|
|
|
|
|
|
|
|
|
Re: Changes from RCP 4.9 to 4.10? [message #1800904 is a reply to message #1800879] |
Wed, 09 January 2019 09:41  |
Eclipse User |
|
|
|
The product now runs with OpenJDK 11. I put everything neccessary for JAXB into the classpath of the plugin which uses JAXB. javax.annotation via require-bundle in manifest.mf.
In my case I needed to add 'org.apache.felix.scr' with autostart=true und startLevel = 2 to the product configuration. Otherwise some exceptions appear in the .log and the application terminates without notice.
I first deleted the startlevel entry for 'org.eclipse.equinox.ds' instead of replacing it with 'org.apache.felix.scr'.
Since I related the issues to Java 11 I went back the whole way to Java 8, Eclipse 2018-09, tycho 1.2.0 but the product still terminated.
This took several hours but now it is working.
|
|
|
Powered by
FUDForum. Page generated in 0.27813 seconds