Your java installation is missing the ca-certs or they are corrupted.
On different linuxes I've seen that two different Java's can interfere with each other (leading to the corruption issue).
And sometimes the certificates are a separate package to install. (leading to the missing issue).
I have uninstalled java completely and reinstalled it, is there any further advice I may obtain? The error message still pops up. and I currently have cacerts and other certificates in the lib/security folder