VMware Cloud Community
djurgens
Contributor
Contributor

Running a script on a guest using Java API Version 7

I hope I'm posting to the right location. I'm trying to move off of VIJAVA and start using Vmware Automation with Java API. The samples were great as far as they went. I now need to create java code to run a script on a VM. I looked at the Programming guide and it showed an implementation in Python, but I couldn't seem to make it work in Java. I understand that i need to create a Spec to get the script over and it did mention Processes.CreateSpec, and I tried to create a Processes service and then create the spec, but I wasn't successful.
Does anyone have a java sample of doing this? Also if I'm posting in the wrong place let me know.
Thansk

Reply
0 Kudos
1 Reply
djurgens
Contributor
Contributor

I've figured this out, but in case someone is stuck here as I was:
I created some helper methods centered around ProcessesTypes, TransfersTypes that made it easy.
Thanks

Reply
0 Kudos