Link to home
Start Free TrialLog in
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)
ASKER CERTIFIED SOLUTION
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I explained what needed to be done