+ 2

Path building in eclipse

I downloaded a file and wrote some code to read the number of lines in the file. I keep getting this error message: File not found. I do not want to use File(“.”).getAbsolutePath. I fear that I may have messed up the path builder by just randomly changing stuff and would like to have everything back to default settings.

19th Mar 2018, 8:11 PM
Vimbai Mawoneke
Vimbai Mawoneke - avatar
5 ответов
+ 19
First - and most important - make sure the Java path is set up correctly in the environmental variables (speaking of Windows). Then you could try to create a new workspace and import your project. If that doesn't resolve the issue, the project settings might cause it. Then you could create a new project and copy/paste the Java files to it. There are other ways like editing the settings files, but I would do as I recommended to play it safe ;)
1st Apr 2018, 6:25 PM
Tashi N
Tashi N - avatar
+ 15
1st Apr 2018, 6:38 PM
Burey
Burey - avatar
+ 11
1st Apr 2018, 6:52 PM
Tashi N
Tashi N - avatar
+ 7
Hello, Tashi N . At all mods here we are guilty of turning this to a chat thread 😁
2nd Apr 2018, 2:56 PM
David Akhihiero
David Akhihiero - avatar
0
keep it up on the coding.I am still learning I am just a learner
4th Apr 2018, 9:10 PM
gladys ugwu