title: JavaFX loader location not set -Plugin Development
body: <p>As part of a plugin i am creating I am using JavaFX with SceneBuilder to create a GUI.  However, when I use the budle.getResource("SymbolTable.fxml") and load the file I get an error "Location is not set" or else with some changing "Could not load src/.../SymbolTable.fxml".</p>
  
  <p>When I place this fxml file into my resource directory the loader works fine but I need to have the fxml file in the package structure to allow for setting a controller class.</p>
  
  <pre><code>@Override
  public void start(Stage stage) throws Exception {
      try { 
          this.primaryStage = stage;
          this.primaryStage.setTitle("Common Symbol Table");
          // Load person overview.
          FXMLLoader loader = new FXMLLoader();
          loader.setLocation(bundle.getResource("SymbolTable.fxml"));
          AnchorPane symbolAnchor = (AnchorPane) loader.load();
  
         // Show the scene containing the root layout.
          Scene scene = new Scene(symbolAnchor);
          primaryStage.setScene(scene);
          primaryStage.show();
          // Give the controller access to the main app.
          //SymbolTableController controller = loader.getController();
          //controller.setMainApp(this);
  
      } catch (IOException e) {
        e.printStackTrace();
      }
  }
  </code></pre>
  
  <p>Even when adding the package to the class path the same error occurs.  Is it something to do with the path?</p>
  
  <p>Its strange as it loads the fxml fine when it is placed in the res/ directory.</p>
  
  <p>Here is my classpath:</p>
  
  <pre><code>source.. = src/
  output.. = bin/
  bin.includes = META-INF/,\
  .,\
  icons/,\
  lib/sphinx4-core-1.0-SNAPSHOT.jar,\
  lib/sphinx4-data-1.0-SNAPSHOT.jar,\
  lib/opencv-300.jar,\
  res/,\
  lib/org.eclipse.fx.ide.css.jfx8_1.1.0.201411050807.jar
  jars.compile.order = .
  </code></pre>