Exception in thread "default" java.io.FileNotFoundException
Description:
I've been getting these errors even though my file is a ".properties".
Undertow started on port(s) 8080 (http)
Exception in thread "default" java.io.FileNotFoundException: config.properties (No such file or directory)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:195)
at java.io.FileInputStream.
What should i do to fix this?
- Create a new text document
- Go to Format > Make Rich Text
- Copy the settings from your original config.preferences to the new text document
- Save the file
@Tom2942 i have the same problem. I did as you said and it still did it. Any other tips?
check my previous issue, remember to CD to the directory first before launching jar
@limyangsern i did that also. i think. Do you mean typing "cd" then putting the folder in.
@addisonrudd Yes, we tend to forget cd to the directory before we launch the jar, and also check if your extension is correct, try to screenshot here
has something to do with the file extension of config.properties see this #889
Guys, If you want to skip all the typing. create a .bat files and paste the code below.
The code will resolve your directory and run the program directly. :-) Cheers.
@echo off cd %~dp0 echo Changed directory to %~dp0 java -jar PokemonGoBot-0.5.0.jar pause
@jabbink I seriously don't believe it has anything to do with paths etc..... This is a server side problem which this program cannot overcome after it happens...
@staurakis no, its definitely your directory problem, i solved mine, which is same as urs!

- make sure your extension is correct.
- go terminal, type cd [directory]
- type java -jar [ur file name]
@limyangsern i am running on a windows machine and i always go and run the program from the directory is in...... I execute it as you suggest (ofcourse) and no i still have the issue....
check if windows have changed your file to .txt
:) no it is the correct extension....

as said before, i have replicated the issue. The issue is server side error. The problem is there is code to 'catch' the issue/error and overcome it.... @jabbink
There is no "server side issue" (there is no "server" from us; only Niantic). You are clearly not running the jar from the directory that also contains your config.properties.
@jabbink of course. I was referring to Niantic. Secondly, as you can also see from the screen captures above, i am running the jar file frim the same directory as the config file.
Sorry @jabbink my mistake, i was referring to the authorization issue.