0
我想.pdf文件鏈接到一個Applet鏈接一個PDF文檔如何在Applet中表列
我使用下面的代碼
try {
//if (column == docColId) {
String doccolvalue = this.getTable().getValueAt(row,
column).toString();
String lPathPrefix = "gopher://muceap10.muc.amadeus.net/User Step Folders/BPS_Files/Outlooksoft CPM/01 - Production Environment/01 -
Documentation Library/01 -
Documents/Daily_Checks/";
String lPath = (lPathPrefix + doccolvalue).replace(" ", "%20");
URI lURI = new URI(lPath);
//lPathPrefix = lPathPrefix.replace(" ", "%20");
//URI lURI = new URI(lPathPrefix + doccolvalue);
java.awt.Desktop lDesktop = java.awt.Desktop.getDesktop();
lDesktop.open(new File(lURI));
} catch (Exception e) {
e.printStackTrace();
}
但我正在以下錯誤
URI scheme is not "file"
at java.io.File.<init>(Unknown Source)
at client.cpm.dailyT0.CBRCPMDailyT0View.table_mouseClicked(CBRCPMDailyT0View.java:371)
at client.cpm.dailyT0.CBRCPMDailyT0View.access$1(CBRCPMDailyT0View.java:325)
任何一個可以幫助我,
預先感謝。
please使用代碼(101)按鈕編寫代碼。 java是否理解「gopher://」協議? – Jayan 2010-09-21 08:37:59