-2

I don't know much about eclipse, I need to install JavaFX for a class, and on Youtube:

Some comments say:

  • "Really important update, if you are using javaSE-16 you NEED to add the javaFX library under the MODULE-PATH instead of under the class-path.

  • I can't get it to run if I include the user library in classpath. It works if I add it to modulepath though. I'm not sure why.

  • Just to confirm what some others have said, in Eclipse 2022-03 (4.23.0) I had to add the library to the modulepath instead the classpath to get it to work. Otherwise, this video is very helpful.

My problem is that i can't find this class-path and module-path in the library tab:

Their windows (pictures taken from the youtube tutorials) look like this: enter image description here enter image description here

as you can see both have "modulepath" and "classpath".

My eclipse look like this: enter image description here

I'm using eclipse for java developers 2022-03 and I just installed it, I haven't made any changes yet.

I can't get JavaFX to work for this reason, is there a way to make those entries appear, or add the JavaFX library under module-path? Any help would be greatly appreciated. Thanks in advance!

(Please keep it simple.. I don't even know what class-path and module-path mean.. I'm just starting out with Java and Eclipse)

  • 3
    You appear to be using the extremely old Java 7 (1.7) for the project which does not support module paths. Use a modern Java - Java 17 for example (17 not 1.7) – greg-449 May 07 '22 at 11:32
  • 1
    _I don't even know what class-path and module-path mean_ then go ahead and do some research, there are tons of resources to learn from .. – kleopatra May 07 '22 at 12:17
  • 1
    Does this answer your question? [IntelliJ can't recognize JavaFX 11 with OpenJDK 11](https://stackoverflow.com/questions/52467561/intellij-cant-recognize-javafx-11-with-openjdk-11) – kleopatra May 07 '22 at 12:19
  • @kleopatra i have enough subject already, i don't have time to study additional stuff – Andrea Burgio May 07 '22 at 14:55
  • @greg-449 my teacher told us to use java 7 to only focus on the fundamental features of java, but now that i selected a newer version those entries appear! If you want to add your answer, i'll accept it as a solution =) – Andrea Burgio May 07 '22 at 15:04
  • @kleopatra no, that doesn't answer my question, it talks about IntelliJ and Maven, and i've never seen them and used them before. I don't even understand what they're talking about – Andrea Burgio May 07 '22 at 15:07
  • _i don't have time to study additional stuff_ then hire a consultant who does the work for you ;) There is absolutely no way to go ahead if you don't know how to work with java basics, like modules. BTW: the accepted answer of the duplicate has links to external guides - doesn't really matter which IDE you use, it's basically the same. – kleopatra May 07 '22 at 15:24

0 Answers0