searching and none of the solutions/problems seem applicable to my case. I'm trying to make a JavaFX application and I'm having issues switching to a FXML view. As soon as I click the corresponding button I get the following exception:
Caused by: java.lang.IllegalAccessException: Class sun.reflect.misc.ReflectUtil can not access a member of class implementation.controller.application.ClassicControllerImpl with modifiers ""
which, as far as I can tell, means that either the class or a relevant member of the class is package protected, but also as far as I can tell I set everything to public.
This is the line where the exception happens:
BorderPane root = (BorderPane) FXMLLoader.load(getClass().getResource("/implementation/view/application/ClassicView.fxml"));
This is the relevant class: https://pastebin.com/dEhZen1J
And this is the view I'm trying to switch to: https://pastebin.com/HNDQMjEz
Can anybody help me, point out the obvious in case I'm missing it, and/or direct me to helpful resources?
sorry to bother; is it bad to "up" a message after 12+h ?
found it! it was the fucking constructor. thanks JavaFX for your helpful error message
Обсуждают сегодня