Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 7092

error: module not found: javafx.controls on ubuntu

$
0
0

Hi, I have a problem running Java FX code. I use Ubuntu 22.04.03 and openjdk 17.0.10 .

I downloaded javafx from the link here

Then, according to its documentation, I typed this command in the terminal:export PATH_TO_FX=Downloads/program/javafx-sdk-22/lib

Now, in another folder where there is HelloFX.java file, I type this command:avac --module-path $PATH_TO_FX --add-modules javafx.controls HelloFX.java But it gives the following error:**error: module not found: javafx.controls 1 error**

I searched a lot and all the sites told me to do the same and use it, but I couldn't.


Viewing all articles
Browse latest Browse all 7092

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>