I can't run my Minesweeper game.
java: cannot access javafx.application.Application
class file for javafx.application.Application not found
What exactly does it mean?
Can not run my Application
Under discussion
Comments (6)
- Popular
- New
- Old
You must be signed in to leave a comment
Richi
13 November 2020, 23:03
it works now.
There comes an extra java-taskbar.
And it opens a strange object, who looks like a television with the gamefield
0
Richi
13 November 2020, 00:41
ok thanks, the application runs now.
but it just shows this:
"C:\Program Files\Java\jdk-14.0.1\bin\java.exe"
Is it normal for this time? I am only at task 8.
I thought, I can see the Gamefield with its cells.
0
Nouser
13 November 2020, 06:50
No, that's not normal and as expected you should see the gamefield.
As said already below, JavaFX was bundeld to Java till (including) version 10. So here you have no problems installing it and setting up the IDE. It just runs out of the box. So I'd suggest to install an older LTS JDK like v8. And that's the version the validator is using, too. So you do not lose functionality but gain compatibility. When this is running and you later need it, you can switch to a higher version. IntelliJ even allows them to run parallel. So you just can switch the version for one project.
0
Richi
11 November 2020, 22:35
And now this:)
Error: Could not find or load main class modules=javafx.controls,javafx.fxml
Caused by: java.lang.ClassNotFoundException: modules=javafx.controls,javafx.fxml
0
Nouser
12 November 2020, 07:51useful
Have you adapted the vm options of IntelliJ
https://www.jetbrains.com/help/idea/javafx.html#vm-options
0
Nouser
8 November 2020, 18:31
Since Java 11 (afaik) JavaFX isn't bunded to Java anymore and you need to install it separately (or use an older Java version, 8+ should do for Codegym).
https://openjfx.io/
0