Skip to main content



      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 05:03 Go to next message
Eclipse UserFriend
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 11:42 Go to previous messageGo to next message
Eclipse UserFriend
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 10:17 Go to previous messageGo to next message
Eclipse UserFriend
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 02:28] by Moderator

Re: e(fx)clipse + Java 17 LTS [message #1847197 is a reply to message #1845047] Tue, 19 October 2021 02:44 Go to previous messageGo to next message
Eclipse UserFriend
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 07:47 Go to previous messageGo to next message
Eclipse UserFriend
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 08:55 Go to previous message
Eclipse UserFriend
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: Tue Mar 11 07:24:16 EDT 2025

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

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

Back to the top