Why am i getting an error when I run javafx webview?

173 Views Asked by At

my project structure

So I imported everything I need for javafx webview. I also added the vm arguments in eclipse, which are these: --module-path /Users/easwar/Downloads/javafx-sdk-21.0.1/lib --add-modules javafx.controls,javafx.fxml

--add-modules javafx.controls,javafx.media

--add-modules javafx.web

but whenever I run it, i keep getting this error message:

thread set port failed due to (os/kern) invalid argument

I am trying to load the url: http://www.google.com but it doesn't work.

complete error message:

msg

I've done a bit of looking around and it seems like there may be a incompatibility between my javafx and java versions. Right now I am using javafx version 21 and java version 19.

0

There are 0 best solutions below