import com.jacob.com.Variant; import com.jacob.activeX.ActiveXComponent; ActiveXComponent shell = new ActiveXComponent("Shell.Application"); Variant hwnd = new Variant(0); Variant title = new Variant("Hello, COM(Jacob) World!"); Variant option = new Variant(0); Variant rootFolder = new Variant(36); Variant[] params = new Variant[] { hwnd, title, option, rootFolder }; Object folder = shell.invoke( "BrowseForFolder", params );