Java 8 Mvn Project doesn't work on Java 17 [closed]

106
July 01, 2022, at 1:30 PM
Closed. This question needs debugging details. It is not currently accepting answers.

Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.

Closed 5 months ago.

Improve this question

I have a Maven Project which was written using Java 8. If I try to run it in Intelliji using SDK 17 everything is red and it doesn't work at all. If I use Java 8 however it works. Why doesn't it work with SDK 17? It should be compatible. Errors in my Code

Answer 1

Those errors are JavaFX related, not Java in general. JavaFX has never been a standard part of Java SE.

You need to either:

  • Add an implementation of JavaFX to your project. Add dependencies to your project for the OpenJFX library. That code base for that implementation is housed as a subproject on the OpenJDK site, and is co-led by Gluon and Oracle.
  • Use a Java implementation that includes the OpenJFX library. At least two vendors offer an edition of their JDK product with OpenJFX: ZuluFX by Azul Systems, and LibericaFX by BellSoft.
Rent Charter Buses Company
READ ALSO
Can't create table "system_user" in h2

Can't create table "system_user" in h2

i am having a problem creating a simple table in h2

93
E/ExtMediaPlayer-JNI: env->IsInstanceOf fails

E/ExtMediaPlayer-JNI: env->IsInstanceOf fails

I'm trying for a month to play an audio from https url, but every time I catch the same errorI'm new in android and I don't know what to try to fix this

116
Cyclic references when converting with MapStruct. Overflow error. Context does not work

Cyclic references when converting with MapStruct. Overflow error. Context does not work

I have 2 entities, with 1-to-1 association (ProfileEntity and VCardEntity)

119
Use Log4j1 and Log4j2 in the same project

Use Log4j1 and Log4j2 in the same project

I have a project in which Log4j1 is used all over the place, I upgraded to log4j2 but there is a jar depending on Log4j1 and I cannot change it

106