VMware Cloud Community
pointer_00
Enthusiast
Enthusiast

Unable to run sample scripts in Linux using vSphere WebServices SDK

Hi,

I have started with the installation of VMWare SDK on Linux (Ubuntu-12.04) and installed the VMware vSphere Web Services SDK from http://communities.vmware.com/community/vmtn/developer/downloads. I set the JAVAHOME path. Now inside SDK/vsphere-ws/java/Axis, when I try to run one of the sample scripts using command:

$> run.sh com/vmware/samples/general/Connect https://<IP-address-of-vcenter> <username> <password>

I get this error: run.sh: command not found

Am I missing something here? Is there anything else that needs to be done here?

Tags (3)
Reply
0 Kudos
1 Reply
esantora
Contributor
Contributor

I just ran into this problem on CentOS 6.5, in SDK/vsphere-ws/java/JAXWS/.

I think this caused by the text decoding in unzip, even with the -a switch. I opened each *.sh file, typed ':set ff=unix' then saved the file. I was then able to successfully run the commands.

Hope that helps.

Reply
0 Kudos