Fixed the problem with load of resources (it should be changes with absolute path, instead of relative path, in the code. Now it works fine