doskiran
Enthusiast
Enthusiast

With yavijava-6.0.05.jar we can still connect to VC7.0 +,

Try this code,

ServiceInstance si = new ServiceInstance(new URL("https://" + vcIPaddress + ":443/sdk"), userName, passwd,
true);

System.out.println(si.getAboutInfo().getFullName()); // VMware vCenter Server 7.0.2 build-17694817

Also set below two VM arguments ,i.e,

-Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2
-DUSESSL=true

My jars:

---------

doskiran_0-1621959513897.png

 

 

 

 

 

 

Reply
0 Kudos