Mozilla Rhino javascript has
<T> T getInterface(Class<T> clasz)
and ScriptEngine.put . Could I use two function in script Task . If I could, How to do it? Where can I put the file of my class?
Hi!
I don't think thats possible, to directly "manipulate" the JavaScript-Engine of vCO.
Short try if you want to use a standard java libary class: Use a shutter-file. Search the forums (=google vco shutter file :smileylaugh:) and http://mighty-virtualization.blogspot.de/2011/01/vco-access-to-java-classes.html to get an idea.
If that's not working, you have to create your own Plugin for vCO. Get the vCO-Plugin SDK, watch the videos and read the docs, it's not toooo complicated to get started...
http://communities.vmware.com/groups/vco-plug-in-sdk
Regards,
Joerg