import com.jacob.com.Variant import com.jacob.activeX.ActiveXComponent class Hello { static void main (args) { def shell = new ActiveXComponent("Shell.Application") def hwnd = new Variant(0) def title = new Variant("Hello, COM(JACOB) World!") def option = new Variant(0) def rootFolder = new Variant(36) def params = [ hwnd, title, option, rootFolder ] as Variant[] def folder = shell.invoke( "BrowseForFolder", params ) } }