How can I run a java class from VBA.  I am trying to post to a server using Excel VBA.  I can do this only with VBA on a PC but when using a MAC the DomDocument object returns a compile error.  So what I did was create a java class which will post and get a response from the server.  Now what I am trying to do is get the VBA to run the java class wait for a return code and process the return.  If this can be done in a different language (then Java) I am also open to that.  But we prefer Java.  
I tried using
Dim obj as Object 
Set obj = GetObject("java:SendXML") '(sendXML is class name) 
but get a run-time error that automation failed.
 
     
     
     
    