I encountered the same issue with Eclipse 4.34, Java 21.0.4, and Apache Directory Studio 2.0.0-M17. After uninstalling Eclipse, I selected the latest available JRE (23.0.1) during my next Eclipse installation, then added the apache directory studio pluing. Now the LDAP connections are successful.