Hi All,
I wanted to link a .pdf file to an Applet
I am using the following code
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();
}
But I am getting the following error
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)
Can any one help me ,
Thank in Advance.