В чём ошибка при запуске javafx app?

В чём ошибка? Больше 2-х часов не могу понять, где я что не так сделал. Думаю, что ошибка возникает из-за строки FXMLLoader fxmlLoader = new FXMLLoader(Main.class.getResource("/main.fxml"));. Дерево файлов прикрепил ниже. При запуске кода вылазит ошибка:

java.lang.reflect.InvocationTargetException
    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:498)
    at com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:389)
    at com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:328)
    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:498)
    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:917)
    at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$1(LauncherImpl.java:182)
    at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NullPointerException
    at com.sun.javafx.scene.control.skin.Utils.computeTextWidth(Utils.java:119)
    at com.sun.javafx.scene.control.skin.LabeledSkinBase.computeMinLabeledPartWidth(LabeledSkinBase.java:661)
    at com.sun.javafx.scene.control.skin.LabeledSkinBase.computeMinWidth(LabeledSkinBase.java:633)
    at com.sun.javafx.scene.control.skin.CheckBoxSkin.computeMinWidth(CheckBoxSkin.java:61)
    at javafx.scene.control.Control.computeMinWidth(Control.java:470)
    at javafx.scene.Parent.minWidth(Parent.java:943)
    at javafx.scene.layout.Region.minWidth(Region.java:1383)
    at javafx.scene.layout.Region.computeChildPrefAreaWidth(Region.java:1728)
    at javafx.scene.layout.AnchorPane.computeWidth(AnchorPane.java:274)
    at javafx.scene.layout.AnchorPane.computeMinWidth(AnchorPane.java:242)
    at javafx.scene.Parent.minWidth(Parent.java:943)
    at javafx.scene.layout.Region.minWidth(Region.java:1383)
    at javafx.scene.layout.Region.computeChildPrefAreaWidth(Region.java:1728)
    at javafx.scene.layout.AnchorPane.computeChildWidth(AnchorPane.java:309)
    at javafx.scene.layout.AnchorPane.layoutChildren(AnchorPane.java:347)
    at javafx.scene.Parent.layout(Parent.java:1087)
    at javafx.scene.Scene.doLayoutPass(Scene.java:552)
    at javafx.scene.Scene.preferredSize(Scene.java:1646)
    at javafx.scene.Scene.impl_preferredSize(Scene.java:1720)
    at javafx.stage.Window$9.invalidated(Window.java:864)
    at javafx.beans.property.BooleanPropertyBase.markInvalid(BooleanPropertyBase.java:109)
    at javafx.beans.property.BooleanPropertyBase.set(BooleanPropertyBase.java:144)
    at javafx.stage.Window.setShowing(Window.java:940)
    at javafx.stage.Window.show(Window.java:955)
    at javafx.stage.Stage.show(Stage.java:259)
    at com.mainlauncher.Main.start(Main.java:21)
    at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$8(LauncherImpl.java:863)
    at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$7(PlatformImpl.java:326)
    at com.sun.javafx.application.PlatformImpl.lambda$null$5(PlatformImpl.java:295)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.javafx.application.PlatformImpl.lambda$runLater$6(PlatformImpl.java:294)
    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.lambda$null$4(WinApplication.java:186)
    ... 1 more
Exception running application com.mainlauncher.Main

Main:

package com.mainlauncher;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.image.Image;
import javafx.stage.Stage;

import java.io.IOException;

public class Main extends Application {
    @Override
    public void start(Stage stage) throws IOException {
        FXMLLoader fxmlLoader = new FXMLLoader(Main.class.getResource("/main.fxml"));
        Scene scene = new Scene(fxmlLoader.load(), 800, 500);
        stage.getIcons().add(new Image("https://sun9-50.userapi.com/impf/dNUcSpBt7Ymq-KpmCjdWZYMZoQ8gCpVB1QjjSw/DCTnq7efE1g.jpg?size=500x500&quality=95&sign=acdf1cef146fff939f3f7f74ed001096&type=album"));
        stage.setTitle("TypicalLauncher");
        stage.setResizable(false);
        stage.setScene(scene);
        stage.show();
    }

    public static void main(String[] args) {
        launch();
    }
}

main.fxml:

<?xml version="1.0" encoding="UTF-8"?>

<?import javafx.scene.control.Button?>
<?import javafx.scene.control.CheckBox?>
<?import javafx.scene.control.Hyperlink?>
<?import javafx.scene.control.PasswordField?>
<?import javafx.scene.control.Slider?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.image.Image?>
<?import javafx.scene.image.ImageView?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.text.Text?>

<AnchorPane prefHeight="500.0" prefWidth="800.0" style="-fx-background-color: #333;" xmlns="http://javafx.com/javafx/8.0.231" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.mainlauncher.Controllers.MainC">
   <children>
      <AnchorPane prefHeight="500.0" prefWidth="82.0" style="-fx-background-color: #000000;">
         <children>
            <ImageView fx:id="account" fitHeight="72.0" fitWidth="73.0" layoutX="5.0" layoutY="14.0" preserveRatio="true">
               <image>
                  <Image url="http://fotorelax.ru/wp-content/uploads/2017/05/Adorable-pictures-from-instagram-by-Kyle-Kuiper-16.jpg" />
               </image>
            </ImageView>
            <ImageView fx:id="News" fitHeight="72.0" fitWidth="72.0" layoutX="5.0" layoutY="257.0" pickOnBounds="true" preserveRatio="true">
               <image>
                  <Image url="http://fotorelax.ru/wp-content/uploads/2017/05/Adorable-pictures-from-instagram-by-Kyle-Kuiper-16.jpg" />
               </image>
            </ImageView>
            <ImageView fx:id="Message" fitHeight="72.0" fitWidth="72.0" layoutX="5.0" layoutY="178.0" pickOnBounds="true" preserveRatio="true">
               <image>
                  <Image url="http://fotorelax.ru/wp-content/uploads/2017/05/Adorable-pictures-from-instagram-by-Kyle-Kuiper-16.jpg" />
               </image>
            </ImageView>
            <ImageView fx:id="Forum" fitHeight="72.0" fitWidth="82.0" layoutX="5.0" layoutY="97.0" pickOnBounds="true" preserveRatio="true">
               <image>
                  <Image url="http://fotorelax.ru/wp-content/uploads/2017/05/Adorable-pictures-from-instagram-by-Kyle-Kuiper-16.jpg" />
               </image>
            </ImageView>
            <ImageView fx:id="settings" fitHeight="72.0" fitWidth="72.0" layoutX="5.0" layoutY="335.0" pickOnBounds="true" preserveRatio="true">
               <image>
                  <Image url="http://fotorelax.ru/wp-content/uploads/2017/05/Adorable-pictures-from-instagram-by-Kyle-Kuiper-16.jpg" />
               </image>
            </ImageView>
            <ImageView fx:id="PlayImage" fitHeight="72.0" fitWidth="72.0" layoutX="5.0" layoutY="414.0" pickOnBounds="true" preserveRatio="true">
               <image>
                  <Image url="http://fotorelax.ru/wp-content/uploads/2017/05/Adorable-pictures-from-instagram-by-Kyle-Kuiper-16.jpg" />
               </image>
            </ImageView>
         </children>
      </AnchorPane>
      <AnchorPane fx:id="OptionsOfSettings" layoutX="56.0" layoutY="-2.0" prefHeight="500.0" prefWidth="743.0" visible="false">
         <children>
            <Slider fx:id="ozuLine" blockIncrement="5.0" layoutX="35.0" layoutY="-20.0" majorTickUnit="1024.0" max="8192.0" min="1024.0" minorTickCount="128" nodeOrientation="LEFT_TO_RIGHT" prefHeight="134.0" prefWidth="559.0" showTickLabels="true" showTickMarks="true" snapToTicks="true" value="1024.0" />
            <Text fx:id="ozuCount" layoutX="594.0" layoutY="43.0" strokeType="OUTSIDE" strokeWidth="0.0" text="1024 Мб" wrappingWidth="114.0" />
         </children>
      </AnchorPane>
      <AnchorPane fx:id="AccountPane" layoutX="56.0" layoutY="-2.0" prefHeight="500.0" prefWidth="743.0">
         <children>
            <TextField fx:id="AccountLoginField" layoutX="95.0" layoutY="202.0" prefHeight="43.0" prefWidth="355.0" promptText="Логин" />
            <CheckBox fx:id="AccountSavePasswordCheckBox" layoutX="454.0" layoutY="183.0" mnemonicParsing="false" prefHeight="81.0" prefWidth="236.0" text="Запомнить" textFill="WHITE" />
            <CheckBox fx:id="ShowPassCheckBox" layoutX="454.0" layoutY="231.0" mnemonicParsing="false" prefHeight="81.0" prefWidth="225.0" text="Показывать пароль" textFill="WHITE" />
            <PasswordField fx:id="AccountPasswordField" layoutX="95.0" layoutY="250.0" prefHeight="43.0" prefWidth="355.0" promptText="Пароль" />
            <TextField fx:id="ShowPassText" editable="false" layoutX="81.0" layoutY="212.0" prefHeight="81.0" prefWidth="369.0" visible="false" />
            <Button fx:id="AccountAuthButton" layoutX="454.0" layoutY="298.0" mnemonicParsing="false" prefHeight="30.0" prefWidth="225.0" style="-fx-background-color: black;" text="Войти" textFill="WHITE" />
            <Hyperlink fx:id="RegHyperLink" layoutX="95.0" layoutY="291.0" pickOnBounds="false" prefHeight="43.0" prefWidth="355.0" text="Регистрация" textFill="WHITE" />
         </children>
      </AnchorPane>
      <AnchorPane fx:id="PlayPane" layoutX="88.0" layoutY="6.0" prefHeight="492.0" prefWidth="712.0" visible="false">
         <children>
            <AnchorPane layoutX="30.0" layoutY="38.0" prefHeight="358.0" prefWidth="281.0" style="-fx-background-color: red;" />
            <AnchorPane layoutX="399.0" layoutY="38.0" prefHeight="358.0" prefWidth="281.0" style="-fx-background-color: green;" />
            <Button fx:id="PlayRPG" layoutX="30.0" layoutY="396.0" mnemonicParsing="false" prefHeight="63.0" prefWidth="281.0" style="-fx-background-color: black; -fx-border-radius: 0;" text="Играть" textFill="WHITE" />
            <Button fx:id="PlayTechnoMagic" layoutX="399.0" layoutY="396.0" mnemonicParsing="false" prefHeight="63.0" prefWidth="281.0" style="-fx-background-color: black; -fx-border-radius: 0;" text="Играть" textFill="WHITE" />
         </children>
      </AnchorPane>
      <AnchorPane fx:id="AfterAuthPane" layoutX="88.0" prefHeight="500.0" prefWidth="712.0" visible="false">
         <children>
            <Text layoutX="243.0" layoutY="221.0" strokeType="OUTSIDE" strokeWidth="0.0" text="ПОСЛЕ АВТОРИЗАЦИИ" />
            <Button fx:id="ExitAccountButton" layoutX="646.0" layoutY="14.0" mnemonicParsing="false" text="Выйти" />
         </children>
      </AnchorPane>
      <AnchorPane fx:id="DownloadPane" layoutX="120.0" layoutY="152.0" prefHeight="134.0" prefWidth="641.0" visible="false">
         <children>
            <Text fx:id="ProgressTextForDownload" layoutY="50.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Text" wrappingWidth="641.0" />
         </children>
      </AnchorPane>
      <AnchorPane fx:id="ForumPane" layoutX="88.0" prefHeight="500.0" prefWidth="712.0" visible="false" />
      <AnchorPane fx:id="MessagePane" layoutX="88.0" prefHeight="500.0" prefWidth="712.0" />
      <AnchorPane fx:id="NewsPane" layoutX="88.0" prefHeight="500.0" prefWidth="712.0" />
   </children>
</AnchorPane>

Дерево проекта:

Дерево проекта


Ответы (0 шт):