Quantcast
Channel: VMware Communities : All Content - VMware vCenter™
Viewing all articles
Browse latest Browse all 24426

VMWARE SDK sample code error

$
0
0

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


Viewing all articles
Browse latest Browse all 24426

Trending Articles