It can run whatever script you can run within the guestOS, so if you have a Java interpreter, then you just need to specify the path and the .java file.
I would recommend creating a script that does the actual execution, test it out manually and then once you have that done. You can either store the script from where ever you're running the VIX call OR have it on the guestOS and just have VIX execute the script. I would recommend taking a look at the documentation for some examples.
=========================================================================
William Lam
VMware vExpert 2009,2010
VMware VCP3,4
VMware VCAP-DCA4
VMware scripts and resources at:
Twitter: @lamw
Getting Started with the vMA (tips/tricks)
Getting Started with the vSphere SDK for Perl
VMware Code Central - Scripts/Sample code for Developers and Administrators
VMware Developer Community

If you find this information useful, please award points for "correct" or "helpful".