'How can i use javafx webview?

I have tried to use javafx viewer but it seems that import javafx.scene.web.WebView; is not recognized, even when I add manually the jars, the ide recognized it but in the build it doesn't work.

I am using maven, how can i add dependencies to make a simple webviewer? What about the module-info.java?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source