🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #533

Re: Printwriter outside JBuilder - ignore last input

#533
From: Magnus
Date: Tue, 21 Jun 2005 20:23
43 lines
2872 bytes
The last test was caused by me. While testing the absolute path I missed 
a character in the port path... I even thought I did a cut from Explorer 
and paste into my code to make sure I got the correct path but I 
probably missed it anyway.

It is as they say, the devil is in the details ;)

Magnus wrote:

> 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: <42b87747$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
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> <42b865c2$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 16:23:43 -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 - ignore last input
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> <42b865c2$1@newsgroups.borland.com>
In-Reply-To: <42b865c2$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: <42b87747$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1119385415 71.0.99.107 (21 Jun 2005 13:23:35 -0700)
Lines: 43
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail