toby082
Contributor
Contributor

VMWARE SDK sample code error

Hi Experts,

I downloaded the SDK and compile the sample code but I got the error when I ran the sample code as below:

C:\devproject\SDK\vsphere-ws\java\JAXWS>run.bat com.vmware.alarms.VMPowerStateAlarm --url https://192.168.1.100/sdk --username test --password test --vmnameTESTVM --alarm TestAlarm Exception in thread "main" java.lang.NoSuchMethodError: com.vmware.vim25.Managed ObjectReference.setValue(Ljava/lang/String;)V

        at com.vmware.alarms.VMPowerStateAlarm.connect(VMPowerStateAlarm.java:15

9)

        at com.vmware.alarms.VMPowerStateAlarm.main(VMPowerStateAlarm.java:462)

Done.

Does anyone have any good idea?

thanks

Toby

0 Kudos
0 Replies