Article View: borland.public.jbuilder.java.language
Article #532Re: Printwriter outside JBuilder
From: Magnus
Date: Tue, 21 Jun 2005 19:08
Date: Tue, 21 Jun 2005 19:08
34 lines
2456 bytes
2456 bytes
OK! That worked for most of the "logs".
I still have problem (that used to work?) when I call the constructor
for my SerialPortCommunication class. Here I log what is sent to and
read from the COMPORT. Now I get:
---
java.io.FileNotFoundException: F:\jbproject\APP\port\log.txt (The system
cannot find the path specified)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
at java.io.FileOutputStream.<init>(FileOutputStream.java:70)
at java.io.FileWriter.<init>(FileWriter.java:46)
...
---
I tried to create the file so I know it is there but same error. It
seems like this thread don't know how to create, or open a file.
I noticed in WinXP that the property "read-only" was checked and gray
but that goes for all log directories where I can write as well.
Alexey N. Solofnenko wrote:
> The current folder depends on your project configuration. Try printing
> new File("./logdir/filename").getAbsolutePath() and see what is there
> and why there can be a problem.
>
> - Alexey.
>
> Magnus wrote:
>
>> I have just installed JBuilder 2005 Professional and now I can't use
>> "./logdir/filename" inside JBuilder either ???
>>
Technical Details
Message-ID:
<42b865c2$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<42b0a92b@newsgroups.borland.com> <42b0ad74$1@newsgroups.borland.com> <42b0d515@newsgroups.borland.com> <42b1a156$1@newsgroups.borland.com> <42b1e1cf$1@newsgroups.borland.com> <42b827d6$1@newsgroups.borland.com> <42b847b1$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: f74b3,ad9f2eda78c91665 X-Google-Attributes: gidf74b3,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Tue, 21 Jun 2005 15:08:57 -0400 From: Magnus <magnus_bjorkman@iwon.com> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax) X-Accept-Language: en-us, en, sv MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language Subject: Re: Printwriter outside JBuilder References: <42b0a92b@newsgroups.borland.com> <42b0ad74$1@newsgroups.borland.com> <42b0d515@newsgroups.borland.com> <42b1a156$1@newsgroups.borland.com> <42b1e1cf$1@newsgroups.borland.com> <42b827d6$1@newsgroups.borland.com> <42b847b1$1@newsgroups.borland.com> In-Reply-To: <42b847b1$1@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 71.0.99.107 Message-ID: <42b865c2$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1119380930 71.0.99.107 (21 Jun 2005 12:08:50 -0700) Lines: 34 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail