Most recent JDK dropped support for TLS 1.1 and below as they are considered insecure.
So it's likely the JDK TLS versions are incompatible with your perforce servers TLS versions.
You could tune the JDK list of disabled TLS versions, or ensure your perforce server uses a secure TLS version.
I would recommend the later and you can find some info on how to do that over at
Regards
/James