[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Wrong Parenthesis in path (i.e. /app/SUNWappserver8\Report) can't be recognised in Sun Solaris?

Posted on 2007-09-28
3
Medium Priority
?
264 Views
Last Modified: 2013-12-27
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/.../Report\ReportTemplate1.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.FileNotFoundException: /app/SUNWappserver8/.../Report/Template\ReportTemplate1.xls (No such file or directory)

Is it a real problem in Solaris?

0
Comment
Question by:rospcc
  • 2
3 Comments
 
LVL 23

Expert Comment

by:Ajay-Singh
ID: 19978717
You should be File.separator to make the path platform independent.
0
 

Author Comment

by:rospcc
ID: 19978751
Can give me some example on how to use the File.separator? Thanks.
0
 
LVL 23

Accepted Solution

by:
Ajay-Singh earned 2000 total points
ID: 19978776
String path = "/app/SUNWappserver8/..." + File.separator + "Report" +
File.separator + "ReportTemplate1.xls";
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The viewer will learn how to implement Singleton Design Pattern in Java.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question