It seems to me we have a misunderstanding. Perhaps i have described my thoughts not deailed enough.
My Package-Structure:
myFXapp/src/main/java <- where the *.java files reside
myFXapp/src/main/rsources <- where the resources reside (*.fxml; *.css)
With "the other Workaround" i meaned moving the *.fxml-files and *.css-Files to myFXapp/src/main/java
That would be the same as having all your files in the root-Directory without having any directories.
That cant be the right way in my opinion.
My Problem is that i can't use the correct relative location when i want to debug the application via ->Debug As->2
Java Application in e(fx)clipse.
If debugging would simply work with the correct path, i would not have a problem.
I have found some entries concernĂng the loading of resource-Files in Stack Overflow. I will look there.
A way that works for me is simply try loading the resource via
Class<? extends MyFXclass> c = getClass();
URL p = c.getResource("/MyFxml.fxml");
if this returns null i try
URL p = c.getResource("/resources/MyFxml.fxml");
For the first this will solve my problem.