rospcc
asked on
Wrong Parenthesis in path (i.e. /app/SUNWappserver8\Report) can't be recognised in Sun Solaris?
Hi, I have JSP application running on Sun App server in Sun Solaris OS. Just noticed that my application trying to retrieve some reports from 1 path, however the path that defined in my application had 1 wrong parenthesis. i.e. /app/SUNWappserver8/.../Re port\Repor tTemplate1 .xls
I can still get the file when the JSP application is running in Windows XP. However, It gave me problem when it's implemented in Sun Solaris. The error is as follows:
java.io.FileNotFoundExcept ion: /app/SUNWappserver8/.../Re port/Templ ate\Report Template1. xls (No such file or directory)
Is it a real problem in Solaris?
I can still get the file when the JSP application is running in Windows XP. However, It gave me problem when it's implemented in Sun Solaris. The error is as follows:
java.io.FileNotFoundExcept
Is it a real problem in Solaris?
You should be File.separator to make the path platform independent.
ASKER
Can give me some example on how to use the File.separator? Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.