title: My JavaFx (Java 1.7) project won't run in Java 1.8.0.0_5
body: <p>I have a project that I did in java 1.7. Now I'm in Java 1.8. I have trouble compiling. It starts compiling well, but then brings an error:</p>
  
  <pre><code>file:/D:/standAloneDev/java/workingDir/live/WakiliProject/dist/run1908724736/WakiliProject.jar!/wakiliproject/Home.fxml
  
  Location is not set.
  screen hasn't been loaded!!!
  </code></pre>
  
  <p>The stack-trace</p>
  
  <pre><code>Exception in Application start method
  java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:483)
      at com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:367)
      at com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:305)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:483)
      at sun.launcher.LauncherHelper$FXHelper.main(LauncherHelper.java:767)
  Caused by: java.lang.RuntimeException: Exception in Application start method
      at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:894)
      at com.sun.javafx.application.LauncherImpl.access$000(LauncherImpl.java:56)
      at com.sun.javafx.application.LauncherImpl$1.run(LauncherImpl.java:158)
      at java.lang.Thread.run(Thread.java:745)
  Caused by: java.lang.NullPointerException
      at wakiliproject.WakiliProject.start(WakiliProject.java:68)
      at com.sun.javafx.application.LauncherImpl$8.run(LauncherImpl.java:837)
      at com.sun.javafx.application.PlatformImpl$7.run(PlatformImpl.java:335)
      at com.sun.javafx.application.PlatformImpl$6$1.run(PlatformImpl.java:301)
      at com.sun.javafx.application.PlatformImpl$6$1.run(PlatformImpl.java:298)
      at java.security.AccessController.doPrivileged(Native Method)
      at com.sun.javafx.application.PlatformImpl$6.run(PlatformImpl.java:298)
      at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
      at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
      at com.sun.glass.ui.win.WinApplication.access$300(WinApplication.java:39)
      at com.sun.glass.ui.win.WinApplication$4$1.run(WinApplication.java:112)
      ... 1 more
  Exception running application wakiliproject.WakiliProject
  Java Result: 1
  Deleting directory D:\standAloneDev\java\workingDir\live\WakiliProject\dist\run1908724736
  jfxsa-run:
  BUILD SUCCESSFUL (total time: 34 seconds)
  </code></pre>
  
  <p>The error is at:</p>
  
  <pre><code>    HomeController.iconifyStageLabel.setOnMousePressed((MouseEvent event) -&gt; {
          primaryStage.setIconified(true);
      });
  
      HomeController.closeStageLabel.setOnMousePressed((MouseEvent event) -&gt; {
          primaryStage.close();
      });
  </code></pre>
  
  <p>The rest of the class looks something like:</p>
  
  <p>Please note line: <code>// This is where compilation seems to stop at</code> ... below</p>
  
  <pre><code>public class HomeController implements Initializable, ControlledScreen {
  
      Agenda lAgenda;
      Pane visibleCenterPane;
  
      Map&lt;String, Agenda.AppointmentGroup&gt; lAppointmentGroupMap;
      public static boolean currentSessionState = true;
  
      List countriesTableInitItems = RetrieveInitialDBItems.retrieveCountriesList();
  
      @FXML
      public static TableView&lt;NewBeautifulKiwiPOJO&gt; KIWI_TABLE;
  
      @FXML
      public static TableColumn&lt;NewBeautifulKiwiPOJO, Object&gt; KiwiId;
  
      @FXML
      public static TableColumn&lt;NewBeautifulKiwiPOJO, String&gt; Kiwi;
  
      @FXML
      public static TableColumn&lt;NewBeautifulKiwiPOJO, Boolean&gt; KiwiAction;
  
      @FXML
      private TableColumn&lt;NewBeautifulKiwiPOJO, String&gt; selectablesKiwi;
  
      @FXML
      public static TableView&lt;InitialDBItemsPOJO&gt; COUNTRIES_TABLE;
  
      @FXML
      private TableColumn&lt;InitialDBItemsPOJO, Integer&gt; countryID;
  
      @FXML
      private TableColumn&lt;InitialDBItemsPOJO, String&gt; country;
  
  // Settings TableView
      @FXML
      public static TableView&lt;SettingsPOJO&gt; settingsTableView;
  
      @FXML
      public static TableColumn&lt;SettingsPOJO, Integer&gt; userID;
  
      @FXML
      public static TableColumn&lt;SettingsPOJO, String&gt; primaryEmail;
  
      ScreensController myController;
  
      private IntegerProperty index = new SimpleIntegerProperty();
  
      // Initializes the controller class.
      @Override
      public void initialize(URL url, ResourceBundle rb) {
  
          // Set up Tables
          // SettingsTableView.settingsTableView();
          new KiwiTableView().kiwiTableView();
  
          KIWITextField.addEventFilter(KeyEvent.KEY_TYPED, maxLength(140));
          System.out.println("KIWITextField initialized to check fo count....");
  
          visibleCenterPane = homeContentDisplay;
          countryID.setCellValueFactory(new PropertyValueFactory&lt;InitialDBItemsPOJO, Integer&gt;("countriesListID"));
          country.setCellValueFactory(new PropertyValueFactory&lt;InitialDBItemsPOJO, String&gt;("countriesList"));
          COUNTRIES_TABLE.setItems((ObservableList&lt;InitialDBItemsPOJO&gt;) countriesTableInitItems);
  
          // Set the total number of Kiwis posted
          totalKiwiStatus.setText(totalKiwiStatus());
  
          // This is where compilation seems to stop at
  
          lAgenda = new Agenda();
          lAgenda.setPrefWidth(498);
          lAgenda.setPrefHeight(191);
  
          for (CalendarPOJO e : new RetrieveAgenda().RetrieveAgenda()) {
              lAgenda.appointments().add(
                  new Agenda.AppointmentImpl()
                  .withStartTime(e.getStartTime())
                  .withEndTime(e.getEndTime())
                  .withSummary(e.getSummury())
                  .withDescription(e.getDescription())
                  .withAppointmentGroup((new AgendaAppointmentGroups().lAppointmentGroupMap(e.getAppointmentGroup()))));
          }
  
          // accept new appointments
          lAgenda.createAppointmentCallbackProperty().set(new Callback&lt;Agenda.CalendarRange, Agenda.Appointment&gt;() {
              public Agenda.Appointment call(Agenda.CalendarRange calendarRange) {
                  return new Agenda.AppointmentImpl()
                      .withStartTime(calendarRange.getStartCalendar())
                      .withEndTime(calendarRange.getEndCalendar())
                      .withSummary("Add new appointment here")
                      .withDescription("new")
                      .withAppointmentGroup(lAppointmentGroupMap.get("group1"));
              }
          });
  
          agendaPane.getChildren().add(lAgenda);
      }
  
      @Override
      public void setScreenParent(ScreensController screenParent) {
          myController = screenParent;
      }
  }
  </code></pre>
  
  <p>What could I be doing wrong? Thank you all.</p>