title: Issues with upgrading from JavaFX 2.2 to JavaFX 8 (Possible bug?)
body: <p>Have been trying to run my JavaFX 2.2 app in JavaFX 8 (8u5), and have consistently been encountering this error:</p>
  
  <pre><code>Caused by: javafx.fxml.LoadException: Error resolving onMouseClicked=
  '#chooseClient', either the event handler is not in the Namespace or there
  is an error in the script. /C:/Users/Viktor/app/bin/main/fxml/layout.fxml:301
  </code></pre>
  
  <p>My code seems completely fine and, most importantly, everything worked perfectly in JavaFx 2.2!! The chooseclient method that it refers to is declared as such:</p>
  
  <pre><code>@FXML protected static void chooseClient() { /* code here */ }
  </code></pre>
  
  <p>As hinted in <a href="https://stackoverflow.com/questions/22832599/javafx-can-controller-be-an-abstract-class">this question</a>, I did a find and replace operation to change all instances of the words 'private' and 'protected' to 'public'. No change, still got the same error.</p>
  
  <p>I am exporting my application as a .jar file from eclipse and running it through the command line (Windows) with</p>
  
  <pre><code>"C:\Program Files\Java\jdk1.8.0_05\jre\bin\java.exe" -jar cClient.jar
  </code></pre>
  
  <p>Hitting 'run' in eclipse results in an identical error.</p>
  
  <p>Running the exactly same exported jar but with JavaFx 2.2 results in no issues at all. Could this be a bug? Very confused as to what could be causing the issue. Any help is much appreciated.</p>