java启动相应的windows程序来打开文件,"rundll32 url.dll,FileProtocolHandler " + sbUrl.toString
本文来自:http://wujianjun0410.iteye.com/blog/944912这里有两种方法:(本人用到第一种方法)try{Runtime.getRuntime().exec("rundll32url.dll,FileProtocolHandler"+sbUrl.toString());}catch(Exceptione2){Logger.error(e2.getMessage()