question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Application run cannot find javafx.web module on Java 17

See original GitHub issue

The Gradle Application Plugin run task doesn’t work when running with Java 17. Works fine on Java 11, but when updated to run Java 17 and JavaFX 17, I get java.lang.module.FindException: Module javafx.web not found

Workaround: Remove the javafxplugin Add JavaFX dependencies

I wonder if there is still any use for this plugin. It saves a few more lines, but seems to do just the same as my workaround.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:1
  • Comments:9

github_iconTop GitHub Comments

2reactions
HEdingfieldcommented, Aug 7, 2022

Similar problem for me running JDK 17 and trying to upgrade from 0.0.11 to 0.0.12 or 0.0.13 and then using gradle run inside IntelliJ:

WARNING: Unknown module: my.project specified to --patch-module
Error: Could not find or load main class my.project.Main
Caused by: java.lang.ClassNotFoundException: my.project.Main
Execution failed for task ':run'.
> Process 'command 'C:\Java\jdk-17.0.2\bin\java.exe'' finished with non-zero exit value 1
0reactions
pellicocommented, Dec 8, 2022

I hit the same issue 😦

Read more comments on GitHub >

github_iconTop Results From Across the Web

Java FX Modular Application, Module not found (Java 17, Intellij)
1 Answer 1 · Steps to address your issue. Ensure that you are using the most recent stable version of Idea (currently 2021.3....
Read more >
[Solved] Error java: package javafx.application does not exist
Look for the javafx.properties file inside the lib directory of your javaFX package you downloaded from the internet: The Oracle website doesn't host...
Read more >
Migrating From JDK 8 to Later JDK Releases
The application class loader is no longer an instance of URLClassLoader but, rather, of an internal class. It is the default loader for...
Read more >
Transition from Java 8 to Java 11 - Azure - Microsoft Learn
If the goal is to get an application up and running as quickly as possible, ... No amount of work will resolve the...
Read more >
JavaFX
JavaFX is an open source, next generation client application platform for desktop, mobile and embedded systems built on Java. It is a collaborative...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found