Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » e(fx)clipse + Java 17 LTS(e(fx)clipse IDE plugin is not working with Java 17)
e(fx)clipse + Java 17 LTS [message #1844676] Tue, 21 September 2021 09:03 Go to next message
Wladimir Degtjarew is currently offline Wladimir DegtjarewFriend
Messages: 3
Registered: September 2021
Junior Member
I am successfuly using e(fx)clipse with Java 15 + JavaFX 16.

After upgrading to Java 17 LTS eclipse does not find OpenJFX libriaries specified under "Preferences > JavaFX > JavaFX 11+ SDK" anymore. This seems to be an OSGi problem also, becouse deployed runtime applications cannot use javafx libriaries for jdk 17. This problem is also occuring for Java 16.

Is there some workaround about this or plans to update e(fx)clipse to support current java LTS version?
Re: e(fx)clipse + Java 17 LTS [message #1845010 is a reply to message #1844676] Sat, 02 October 2021 15:42 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hm the only thing that go moved in JFX-17 is the location of the src.zip - we are about to release a new version very soon. Can you give the nightlies as spin? Just to make sure do we talk about the tooling or the runtime, where you integrate into an OSGi-Appliction?
Re: e(fx)clipse + Java 17 LTS [message #1845047 is a reply to message #1845010] Mon, 04 October 2021 14:17 Go to previous messageGo to next message
Wladimir Degtjarew is currently offline Wladimir DegtjarewFriend
Messages: 3
Registered: September 2021
Junior Member
It seems to be a tooling problem, not the combination of e(fx)clipse + JFX 17, but the problem can be the combination of Java 16,17 + e(fx)clipse. After upgrading to java 17 my IDE does not show javafx.* plugin dependencies in "Plug-in Dependencies" section anymore, but I can start and run my e(fx)clipse projects as long as projects compiled for Java 15. Same problem with nightly build of e(fx)clipse tooling (3.7.1) and JFX 16, 17.

Combination of Java 15 + e(fx)clipse 3.7.0 + JXF 16 works as expected. You can reproduce described problem by installing Java 17 -> uninstall Java 15 -> Restart Eclipse -> Close all Projects -> Open all Projects -> "Project - Clean ... - Clean all Projects". Some of Projects will miss openjfx.* deps in "Plug-in Dependencies" section.

[Updated on: Tue, 05 October 2021 06:28]

Report message to a moderator

Re: e(fx)clipse + Java 17 LTS [message #1847197 is a reply to message #1845047] Tue, 19 October 2021 06:44 Go to previous messageGo to next message
Sebastian W is currently offline Sebastian WFriend
Messages: 1
Registered: October 2021
Junior Member
Wladimir Degtjarew wrote on Mon, 04 October 2021 14:17
It seems to be a tooling problem, not the combination of e(fx)clipse + JFX 17, but the problem can be the combination of Java 16,17 + e(fx)clipse. After upgrading to java 17 my IDE does not show javafx.* plugin dependencies in "Plug-in Dependencies" section anymore, but I can start and run my e(fx)clipse projects as long as projects compiled for Java 15. Same problem with nightly build of e(fx)clipse tooling (3.7.1) and JFX 16, 17.

Combination of Java 15 + e(fx)clipse 3.7.0 + JXF 16 works as expected. You can reproduce described problem by installing Java 17 -> uninstall Java 15 -> Restart Eclipse -> Close all Projects -> Open all Projects -> "Project - Clean ... - Clean all Projects". Some of Projects will miss openjfx.* deps in "Plug-in Dependencies" section.



its the same for me. is there any fix being worked on / is there someone capable to solve this problem?
Re: e(fx)clipse + Java 17 LTS [message #1847672 is a reply to message #1844676] Wed, 03 November 2021 11:47 Go to previous messageGo to next message
Wladimir Degtjarew is currently offline Wladimir DegtjarewFriend
Messages: 3
Registered: September 2021
Junior Member
I found a solution. It is not e(fx)clipse platform problem, but a lack of Java 17 support by Eclipse itself.

Just add Java 17 support for Eclipse IDE (install Eclipse Marketplace plugin) and add JavaSE-17 to execution enviroments in MANIFEST.MF
Re: e(fx)clipse + Java 17 LTS [message #1849213 is a reply to message #1847672] Sat, 08 January 2022 13:55 Go to previous message
Stephane  fournier is currently offline Stephane fournierFriend
Messages: 340
Registered: July 2009
Senior Member
Hi,
I've just moved on OpenJDK 17.0.1 + OpenJfx 17.0.1 + EFX 3.7.1 (nightly p2 sites tooling + runtime) + Eclipse IDE 2021/12, everything runs well including JavaSE-11 target.

If you still have some bundles with MANIFEST.MF set to JavaSE-11 that depends on javafx, to get your code compiled, you have to tick the checkboxes in Java > Installed JRE, that JDK 17 is compatible JRE with JavaSE-11 to 17.
Then close / reopen the bundles that depends on javafx, and clean all to force everything to recompile.

Like this, you are using JDK 17 but with a targeted env set to JavaSE-11 (check the compiler setting).
It can avoid duplicating JDK packages installed on your machine.

Stéphane
Previous Topic:e(fx)clipse 3.7 + eclipse 2020/12 + open jdk 11 : Exception raised
Next Topic:JavaFX SDK in Eclipse 2022-03
Goto Forum:
  


Current Time: Fri Mar 29 08:52:57 GMT 2024

Powered by FUDForum. Page generated in 0.03103 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top