Exception in thread "main" java.lang.IllegalArgumentException: java.net.MalformedURLException: no protocol: ec2-.us-west-2.compute.amazonaws.com
at io.cloudsoft.winrm4j.client.WinRmClientBuilder.toUrlUnchecked(WinRmClientBuilder.java:179)
at io.cloudsoft.winrm4j.client.WinRmClientBuilder.(WinRmClientBuilder.java:39)
at io.cloudsoft.winrm4j.client.WinRmClient.builder(WinRmClient.java:95)
at basic.MainWinRM.main(MainWinRM.java:18)
Caused by: java.net.MalformedURLException: no protocol: ec2-.us-west-2.compute.amazonaws.com
at java.net.URL.(URL.java:593)
at java.net.URL.(URL.java:490)
at java.net.URL.(URL.java:439)
at io.cloudsoft.winrm4j.client.WinRmClientBuilder.toUrlUnchecked(WinRmClientBuilder.java:177)
While connecting to AWS windows instance I faced above issue.
Exception in thread "main" java.lang.IllegalArgumentException: java.net.MalformedURLException: no protocol: ec2-.us-west-2.compute.amazonaws.com
at io.cloudsoft.winrm4j.client.WinRmClientBuilder.toUrlUnchecked(WinRmClientBuilder.java:179)
at io.cloudsoft.winrm4j.client.WinRmClientBuilder.(WinRmClientBuilder.java:39)
at io.cloudsoft.winrm4j.client.WinRmClient.builder(WinRmClient.java:95)
at basic.MainWinRM.main(MainWinRM.java:18)
Caused by: java.net.MalformedURLException: no protocol: ec2-.us-west-2.compute.amazonaws.com
at java.net.URL.(URL.java:593)
at java.net.URL.(URL.java:490)
at java.net.URL.(URL.java:439)
at io.cloudsoft.winrm4j.client.WinRmClientBuilder.toUrlUnchecked(WinRmClientBuilder.java:177)
While connecting to AWS windows instance I faced above issue.