I have my project structure like this
--src
--------------resources
--------------saves
I use this subfolder at multiples times like this:
File tempFile = new File("src/saves/" + videoName + ".json");
or sometimes like this :
ImageView icon = new ImageView("resources/edit.png");
and :
File f = new File("src/resources/zelda.mp4");
For some reasons it works for the icon
but not for the video/file, when I try I get this error:
Caused by: MediaException: MEDIA_UNAVAILABLE : C:\Users\histackoverflow\IdeaProjects\project2\resources\zelda.mp4 (specified path can't be found)
so I want to know what is wrong in my way of using path ?