troubleshooting Question

Help please

Avatar of detective_x
detective_x asked on
JavaEditors IDEs
2 Comments1 Solution272 ViewsLast Modified:
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
Mick Barry
Java Developer
Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros