You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by Saad Shakil <ss...@rim.com> on 2010/12/15 03:58:46 UTC
unable to run example HSSFReadWrite in eclipse
Hi,
I get this error when trying to run HSSFReadWrite with one parameter, the filename:
java.io.FileNotFoundException: file:\C:\book.xls (The filename, directory name, or volume label syntax is incorrect)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at java.io.FileInputStream.<init>(FileInputStream.java:66)
at prv.ba.ave.cli.HSSFReadWrite.readFile(HSSFReadWrite.java:50)
at prv.ba.ave.cli.HSSFReadWrite.main(HSSFReadWrite.java:157)
with Program argument: file://C:\book.xls<file:///C:\book.xls>
java.io.FileNotFoundException: C:\book.xls (The system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at java.io.FileInputStream.<init>(FileInputStream.java:66)
at prv.ba.ave.cli.HSSFReadWrite.readFile(HSSFReadWrite.java:50)
at prv.ba.ave.cli.HSSFReadWrite.main(HSSFReadWrite.java:157)
with program argument C:\book.xls
C:\book.xls exists.
With C:\book.xls C:\books2.xls:
readwrite test
java.io.FileNotFoundException: C:\book.xls (The system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at java.io.FileInputStream.<init>(FileInputStream.java:66)
at prv.ba.ave.cli.HSSFReadWrite.readFile(HSSFReadWrite.java:50)
at prv.ba.ave.cli.HSSFReadWrite.main(HSSFReadWrite.java:210)
http://svn.apache.org/repos/asf/poi/trunk/src/examples/src/org/apache/poi/hssf/usermodel/examples/HSSFReadWrite.java
---------------------------------------------------------------------
This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.