Reputation: 2395
So this same project runs fine in Eclipse. I'm trying to run it using IntelliJ IDEA, and getting this error:
java.io.FileNotFoundException: config\server.ini (The system cannot find the path specified)
The config directory and the server.ini file are both definantly there. Is there something Im missing? I know IntelliJ comes with the Ant build system, do I need to write some kind of build file to include the /config directory when building?
If not, what might be causing this?
Upvotes: 0
Views: 3036
Reputation: 717
If you are sure your file actually exists, this is most probably caused by the relative path given (config/server.ini
instead of e.g. /home/foobar/config/server.ini
). I assume IntelliJ IDEA is running your project under a different working directory than Eclipse. Check that in your run configurations.
Upvotes: 3