Hi,
File file = new File(strFileName) .
For the above line, if strFileName="C:\\SomeProgr
am\\myfile
.txt", it works fine.
However, if I have strFileName="C:\\Program Files\\SomeProgram\\myfile
.txt", it works file on my machine, but throws up if I have the same code inside JBoss (on my machine. Any idea what is going on? See below for the error. I tried substituting with "Progam%20Files" and "Progra~1", but still no use.
Thanks.
----
15:19:21,259 INFO [STDOUT] java.io.FileNotFoundExcept
ion: C:\Program%20Files\SomePro
gram\myfil
e.txt
Start Free Trial