I'm trying to create a JavaFX 2 Media Instance with a relative path (in Eclipse). I've tried it by writing this:
Media media= new Media("file://test.flv");
This gives me a MediaException of type MEDIA_INACCESSIBLE. The file I'm trying to load is located in my eclipse project root folder.
I am aware of the answer to this question How to target a file (a path to it) in Java/JavaFX but this only covers loading a file with an absolute path or as a resource.
Thanks