Discussion:
[tycho-user] When can we expect a Java9-ready Tycho release?
Katrin STRASSL
2017-10-12 12:47:49 UTC
Permalink
Hi,
I tried to set up a simple Java 9 testproject with Tycho.
In the MANIFEST.MF I set the required execution environment to "JavaSE-9",
maven.compiler.source and maven.compiler.target in the pom.xml are set to
1.9.

When trying to compile with Tycho 1.0, I get the following error:
[ERROR] Failed to execute goal
org.eclipse.tycho:tycho-compiler-plugin:1.0.0:compile (default-compile) on
project com.sprecher.rep.common.api: Fatal error compiling: target level
should be comprised in between '1.1' and '1.8' (or '5', '5.0', ..., '8' or
'8.0') or cldc1.1: 1.9 -> [Help 1]

Will Tycho 1.1 be working with Java 9 and fix this problem? I couldn't
find a scheduled release date anywhere, is there any estimate yet?

Thanks
Sievers, Jan
2017-10-13 07:22:06 UTC
Permalink
https://bugs.eclipse.org/bugs/show_bug.cgi?id=514471

no ETA

from what I could gather JDT support for Java 9 ist still BETA [1] and we are waiting for the JDT batch compiler to support JMOD files [1] (although there may be more missing on the Tycho or JDT side)

Regards,
Jan

[1] https://wiki.eclipse.org/Java9
[2] https://bugs.eclipse.org/bugs/show_bug.cgi?id=500905


On 12.10.17, 14:48, "tycho-user-***@eclipse.org on behalf of Katrin STRASSL" <tycho-user-***@eclipse.org on behalf of ***@sprecher-automation.com> wrote:

Hi,I tried to set up a simple Java 9 testproject with Tycho.

In the MANIFEST.MF I set the required execution environment to "JavaSE-9", maven.compiler.source and maven.compiler.target in the pom.xml are set to 1.9.
When trying to compile with Tycho 1.0, I get the following error:
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:1.0.0:compile (default-compile) on project com.sprecher.rep.common.api: Fatal error compiling: target level should be comprised in between '1.1' and '1.8'
(or '5', '5.0', ..., '8' or '8.0') or cldc1.1: 1.9 -> [Help 1]

Will Tycho 1.1 be working with Java 9 and fix this problem? I couldn't find a scheduled release date anywhere, is there any estimate yet?

Thanks
Vlad Dumitrescu
2017-10-13 07:28:15 UTC
Permalink
Hi!

I'm not involved in any of this, but Java 9 support is no longer beta:
https://www.eclipse.org/eclipse/news/4.7.1a/#java-9. The JMOD issue targets
4.8.

best regards,
Vlad
Post by Sievers, Jan
https://bugs.eclipse.org/bugs/show_bug.cgi?id=514471
no ETA
from what I could gather JDT support for Java 9 ist still BETA [1] and we
are waiting for the JDT batch compiler to support JMOD files [1] (although
there may be more missing on the Tycho or JDT side)
Regards,
Jan
[1] https://wiki.eclipse.org/Java9
[2] https://bugs.eclipse.org/bugs/show_bug.cgi?id=500905
Hi,I tried to set up a simple Java 9 testproject with Tycho.
In the MANIFEST.MF I set the required execution environment to
"JavaSE-9", maven.compiler.source and maven.compiler.target in the pom.xml
are set to 1.9.
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:1.0.0:compile
(default-compile) on project com.sprecher.rep.common.api: Fatal error
compiling: target level should be comprised in between '1.1' and '1.8'
(or '5', '5.0', ..., '8' or '8.0') or cldc1.1: 1.9 -> [Help 1]
Will Tycho 1.1 be working with Java 9 and fix this problem? I couldn't
find a scheduled release date anywhere, is there any estimate yet?
Thanks
_______________________________________________
tycho-user mailing list
To change your delivery options, retrieve your password, or unsubscribe
from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user
Mickael Istria
2017-10-13 07:47:06 UTC
Permalink
Hi,

JDT compiler is fully ready for Java 9 as of Photon M3/Oxygen 1a. It may
miss a few features related to other Java 9 stuff, but compiler is already
ready.
So I think it would be great if Tycho could be ready for Java 9 asap by
pulling newer JDT bundles, as there is already value for many users in it.
Some RCPs do include a JVM directly, and might already prefer using,
buiding on top of and shipping Java9 for several reasons such as
performance or to easily tailor the JVM for their apps; and those RCP are
most likely using Tycho. So I see a huge value for the community in
shipping Java 9 compilation support soon.
That said, I believe Tycho typically waits for JDT milestones to be ready
before consuming them, doesn't it? According to
https://www.eclipse.org/projects/project-plan.php?planurl=http://www.eclipse.org/eclipse/development/plans/eclipse_project_plan_4_8.xml
, Photon M3 will be shipped on Oct 27th.
Sievers, Jan
2017-10-13 09:25:18 UTC
Permalink
I agree Java 9 support is an important feature.

I prepared a commit to use JDT from Oxygen 1a
https://git.eclipse.org/r/#/c/109979/


Unfortunately looks like it's not that easy.
We have to use Java 9 for compiling Tycho as JDT now requires Java 9.

Compilation of this patch using Java 9 currently fails with errors like

[ERROR] The type java.lang.String cannot be resolved. It is indirectly referenced from required .class files


so we are back to the original issue reported in
https://bugs.eclipse.org/bugs/show_bug.cgi?id=514471


maybe I'm missing something obvious here?
Could use some advice from JDT experts.


Regards,
Jan




On 13.10.17, 09:47, "tycho-user-***@eclipse.org on behalf of Mickael Istria" <tycho-user-***@eclipse.org on behalf of ***@redhat.com> wrote:

Hi,


JDT compiler is fully ready for Java 9 as of Photon M3/Oxygen 1a. It may miss a few features related to other Java 9 stuff, but compiler is already ready.

So I think it would be great if Tycho could be ready for Java 9 asap by pulling newer JDT bundles, as there is already value for many users in it. Some RCPs do include a JVM directly, and might already prefer using, buiding on top of and shipping Java9 for
several reasons such as performance or to easily tailor the JVM for their apps; and those RCP are most likely using Tycho. So I see a huge value for the community in shipping Java 9 compilation support soon.
That said, I believe Tycho typically waits for JDT milestones to be ready before consuming them, doesn't it? According to

https://www.eclipse.org/projects/project-plan.php?planurl=http://www.eclipse.org/eclipse/development/plans/eclipse_project_plan_4_8.xml <https://www.eclipse.org/projects/project-plan.php?planurl=http://www.eclipse.org/eclipse/development/plans/eclipse_project_plan_4_8.xml> , Photon M3 will be shipped on Oct 27th.
Mickael Istria
2017-10-13 09:34:27 UTC
Permalink
Post by Sievers, Jan
maybe I'm missing something obvious here?
Did you try with Maven 3.5.0 ?
Could the JVM arg "--add-modules=ALL-SYSTEM" flag help here (like in
https://wiki.eclipse.org/Configure_Eclipse_for_Java_9#Configure_Eclipse_for_Java_9_modules
)?
--
Mickael Istria
Eclipse IDE <https://www.eclipse.org/downloads/eclipse-packages/>
developer, at Red Hat Developers <https://developers.redhat.com/> community
Elected Committer Representative at the Eclipse Foundation
<https://www.eclipse.org/org/> board of directors
Loading...