Avatar of detective_x
detective_x
 asked on

Help please

Im trying to read a data file in netBeans but it doesnt not where it is.

Does any1 know how to set the path in Netbeans 6.0.1 so it can read the datafile

init:
deps-jar:
compile:
run:
Read from local file...
java.io.FileNotFoundException: /NetBeansProjects/Project/src/RoutePlanner/orte.csv (No such file or directory)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:106)
        at RoutePlanner.reader.FileDataReader.getInputStream(FileDataReader.java:26)
        at RoutePlanner.reader.AbstractDataReader.fillCities(AbstractDataReader.java:36)
        at RoutePlanner.RoutePlanner.readData(RoutePlanner.java:43)
        at RoutePlanner.RoutePlanner.main(RoutePlanner.java:24)
java.io.FileNotFoundException: Could not find file: /NetBeansProjects/Project/src/RoutePlanner/orte.csv
        at RoutePlanner.reader.FileDataReader.getInputStream(FileDataReader.java:29)
        at RoutePlanner.reader.AbstractDataReader.fillCities(AbstractDataReader.java:36)
        at RoutePlanner.RoutePlanner.readData(RoutePlanner.java:43)
        at RoutePlanner.RoutePlanner.main(RoutePlanner.java:24)
Route planner could not be started, due to data read error.
java.io.FileNotFoundException: Could not find file: /NetBeansProjects/Project/src/RoutePlanner/orte.csv
        at RoutePlanner.reader.AbstractDataReader.fillCities(AbstractDataReader.java:51)
        at RoutePlanner.RoutePlanner.readData(RoutePlanner.java:43)
        at RoutePlanner.RoutePlanner.main(RoutePlanner.java:24)
Editors IDEsJava

Avatar of undefined
Last Comment
Mick Barry

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Mick Barry

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Mick Barry

I explained what needed to be done

I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck