1

I have created a new (Control) Class that extends of BorderPane. This class loads an FXML in the constructor.

In another fxml, I am using this Control this way . It works perfectly, however, as soon as I try to move MyController.fxml (and its class that extends BorderPane) in another package, I get a ClassNotFoundException even if I did correct the imports/includes.

Thanks

Edit :

Here is a screenshot for more details. As soon as I move TowerUI into the UI package, I get the exception (that you can also see on the screenshot)

URL: https://i.stack.imgur.com/LYWGn.png

enter image description here

Edit 2 :

TowerUI.java : http://pastebin.com/MCuxEJVE

Jamesst20
  • 404
  • 6
  • 21
  • 1
    are both the pacakges in the same jar ? is it that you are moving the parent class to an internal package ? – StackFlowed Sep 13 '14 at 17:04
  • Hi, please take a look to this screenshot, TowerUI is what I move. If I move it in the UI package, it makes an exception, otherwise it is fine. http://i.imgur.com/eCP68A1.png – Jamesst20 Sep 13 '14 at 17:10
  • Can you add code for `TowerUI.java` ? – ItachiUchiha Sep 13 '14 at 17:25
  • @ItachiUchiha Sure, Here you go :) http://pastebin.com/MCuxEJVE Tried removing everything in the constructor and same exception. – Jamesst20 Sep 13 '14 at 17:28

0 Answers0