Well, the complete and detailed steps to fix my issue are these (maybe any of them could not be necessary, but I prefer to write them all):
- Create config file in Linux with vi, emacs, ... (not upload file from Windows).
- Edit file with vi, emacs... At the end of each path, do not include directory separator character ( / ).
- Check variables before contatenate them. Make sure they don't have any space and other unexpected character.
Concatenate variables with:
String result = path + File.separator + file;
I hope this would be useful. Thank you all for your suggestions. Regards