I wanted to use a specific version of openjfx so to download it I used the command
sudo apt install openjfx=8u161-b12-1ubuntu2
But intellij idea can't seem to find this file so i looked into it and when I searched for the file with the terminal command
find /usr -name jfxrt.jar
it came up with the location
/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/jfxrt.jar
but when I did
ls -la /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/jfxrt.jar
I got a response of
lrwxrwxrwx 1 root root 58 huhti 6 2018 /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/jfxrt.jar -> ../../../../../../share/java/openjfx/jre/lib/ext/jfxrt.jar
But the file location is red and I can't find it by going through my files in intellij. What does this mean? This isn't an issue with only this version of openjfx. I can't find the file even if I run just
sudo apt install openjfx
I'm running ubuntu 19.04 if that's of any help. Edit: Some more info if I click on the file jfxrt.jar through my graphical file manager it comaplains that "This link cannot be used, because its target "../../../../../../share/java/openjfx/jre/lib/ext/jfxrt.jar" doesn't exist." And when I made my way to the location that the link links to it ends in a dead ended at /share/java/openjfx where there was a few files. And in past tense, because now that I checked again there was nothing. Umm what. Idk if this helped at all, but hopefully someone could help me soon.
This was a massive pain to fix so if anyone else has this problem basically for some reason apt wasn't able to download all of the dependencies and I had to download libopenjfx-java which was found from https://ubuntu.pkgs.org/18.04/ubuntu-universe-amd64/openjfx_8u161-b12-1ubuntu2_amd64.deb.html so basically just run
sudo apt install libopenjfx-java=8u161-b12-1ubuntu2
That should fix the issue.