5

How to build an eclipse RCP app based on Java 11 with tycho?
I'm using eclipse 2018-09 RCP + the Java 11 plugin + OpenJDK 11
My application is plugin-based and in all the plugins, theMANIFEST.MFfile contains:

Bundle-RequiredExecutionEnvironment: JavaSE-11

The tycho build fails with the following exception:

    [ERROR] Internal error: org.eclipse.tycho.core.osgitools.OsgiManifestParserException: Exception parsing OSGi MANIFEST {...}\META-INF\MANIFEST.MF: Unknown OSGi execution environment: 'JavaSE-11' -> [Help 1]
    org.apache.maven.InternalErrorException: Internal error: org.eclipse.tycho.core.osgitools.OsgiManifestParserException: Exception parsing OSGi MANIFEST {...}\META-INF\MANIFEST.MF: Unknown OSGi execution environment: 'JavaSE-11'
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:120)
    {...}
    Caused by: org.eclipse.tycho.core.ee.UnknownEnvironmentException: Unknown OSGi execution environment: 'JavaSE-11'
        at org.eclipse.tycho.core.ee.ExecutionEnvironmentUtils.getExecutionEnvironment(ExecutionEnvironmentUtils.java:84)
        at org.eclipse.tycho.core.osgitools.OsgiManifest.parseExecutionEnvironments(OsgiManifest.java:66)
        ... 24 more

Is tycho compatible with Java 11? if so how to configure it to build java 11 RCP apps?

I found this post that is very similar (for Java 10...)

Didier L
  • 16,220
  • 8
  • 54
  • 98
titou10
  • 2,491
  • 1
  • 18
  • 36
  • I think OSGi support for Java 11 [will be provided](https://twitter.com/noopur2507/status/1039494569195397122) by Eclipse 4.10 (2018-12) – ZhekaKozlov Oct 02 '18 at 14:12
  • OK... it seems that it is the same as currently when you use the Java 11 plugin (which I do). Very uncertain about the difference and the big question remains. Will tycho support Java 11? When ? – titou10 Oct 03 '18 at 12:10
  • 1
    See [Eclipse bug 532302](https://bugs.eclipse.org/bugs/show_bug.cgi?id=532302) – howlger Oct 03 '18 at 13:04

1 Answers1

3

Using eclipse RCP v2018-12 (v4.10) + eclipse tycho v1.3.0 solved all my problems
JMSToolBox is now developped and distributed with Java 11
(see also this post for packaging Java 11 JRE)

titou10
  • 2,491
  • 1
  • 18
  • 36