php - %%Include{ }%%Error accessing windows share through a Java application -
i developed java application gives access shared folders network.
scenario
application accessing includes search field. accessing file using following code:
try { file file = new file("//192.x.x.x/asfa/asfa dvd 2000 upto 2015 - q1/cdrun.exe"); desktop dt = desktop.getdesktop(); dt.open(file); } catch (exception e) { joptionpane.showmessagedialog(null, "unable access remote database, please try after time!!!"); e.printstacktrace(); }
i have tried (only 1 of these lines @ time):
file file = new file("\\\\server\\asfa\\asfa dvd 2000 upto 2015 - q1\\cdrun.exe"); file file = new file("\\\\192.x.x.x\\asfa\\asfa dvd 2000 upto 2015 - q1\\cdrun.exe"); file file = new file("//server/asfa/asfa dvd 2000 upto 2015 - q1/cdrun.exe");
for these above mentioned scenarios, application cdrun.exe
opens up(which fine) server
, gives error message :
so, few similar posts in so[link1, link2] , googling around, found %%include{ }%%error
has path specified. never came solution , error continues show up.
whereas when access application cdrun.exe
server
itself, runs fine.
any suggestions ?
Comments
Post a Comment