Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Need help with a Netbeans specific problem...

Need help with a Netbeans specific problem...
Thread Tools
Fresh-Faced Recruit
Join Date: Sep 2003
Location: Canada
Status: Offline
Reply With Quote
Nov 9, 2003, 05:06 PM
 
...I'm working on a short assignment for University, and had a pair of classes up and running at school that are doing very basic file I/O operations.

The user is prompted for a relevant filename to open, at which point one of the classes reads from the text file, does some sorting, etc, then displays output text. My Java classes were working at the school, but now having the same files at home has broken the program:

"java.io.FileNotFoundException: names.txt (The system cannot find the file specified)"

I have a really strong feeling that this is a Netbeans specific configuration problem, whereby the "names.txt" file is either not being seen by the executing classes or is somehow inaccessable. Any suggestions where to look in Netbeans if it is indeed "breaking" my code? I'm about 99% certain that it's not a coding error.
     
Kibon  (op)
Fresh-Faced Recruit
Join Date: Sep 2003
Location: Canada
Status: Offline
Reply With Quote
Nov 9, 2003, 05:14 PM
 
Originally posted by Kibon:
...I'm working on a short assignment for University, and had a pair of classes up and running at school that are doing very basic file I/O operations.

The user is prompted for a relevant filename to open, at which point one of the classes reads from the text file, does some sorting, etc, then displays output text. My Java classes were working at the school, but now having the same files at home has broken the program:

"java.io.FileNotFoundException: names.txt (The system cannot find the file specified)"

I have a really strong feeling that this is a Netbeans specific configuration problem, whereby the "names.txt" file is either not being seen by the executing classes or is somehow inaccessable. Any suggestions where to look in Netbeans if it is indeed "breaking" my code? I'm about 99% certain that it's not a coding error.
Update - I managed to get the file I/O error fixed. I'm going to have to spend some quality time browsing through the Netbeans docs again to make sure that I'm setting up my projects correctly in the IDE.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 02:24 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2