使用Graal、Gradle和Glion客户端的本机映像不';t加载我的主FXML[Windows]

使用Graal、Gradle和Glion客户端的本机映像不';t加载我的主FXML[Windows],gradle,javafx,gluon,Gradle,Javafx,Gluon,这与我的第一个问题有关,但随着我的深入,这个问题发生了很大的变化。我无法在本机映像和Windows上找到有关此(看似简单的问题)的信息 情况:IntelliJ运行我的应用程序,创建一个可执行Jar也可以运行 问题:对于本机映像,我在主FXML上收到一个loadexception。这不是一个“位置未设置”错误,所以我认为这不是运行时类路径问题 我的想法:既然我的Jar的问题是运行时类路径,那么本机映像可能仍然是这样吗?如果是,我如何在gluonClient{}路径中设置它 解决方案:在@JoséP

这与我的第一个问题有关,但随着我的深入,这个问题发生了很大的变化。我无法在本机映像和Windows上找到有关此(看似简单的问题)的信息

情况:IntelliJ运行我的应用程序,创建一个可执行Jar也可以运行

问题:对于本机映像,我在主FXML上收到一个loadexception。这不是一个“位置未设置”错误,所以我认为这不是运行时类路径问题

我的想法:既然我的Jar的问题是运行时类路径,那么本机映像可能仍然是这样吗?如果是,我如何在gluonClient{}路径中设置它

解决方案:在@JoséPereda的帮助下,这个问题是一个不完整的反思列表。将stacktrace添加到catch块显示了我仍然需要添加的“未找到的类”。我的困惑来自这样一个事实:这一切都不是jar和IntelliJ中的问题。我有一些书要读。:)

错误

[Fri Oct 02 19:34:12 CEST 2020][INFO] ==================== RUN TASK ====================
[Fri Oct 02 19:34:12 CEST 2020][FINE] PB Command for run until end: C:\Users\vince\Documents\Company\Company-APP\Programming\Java\Projects\AstroPixelProcessor-javafx\build\client\x86_64-windows\AstroPixelProcessor-javafx.exe
[Fri Oct 02 19:34:12 CEST 2020][FINE] Start process run until end...
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB] There was a problem loading the main view fxml; javafx.fxml.LoadException: 
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB] views/MainView.fxml
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB] 
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB] Exception in Application start method
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB] Something went wrong with launching the JavaFX runtime.
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB] java.lang.RuntimeException: Exception in Application start method
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB]     at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:900)
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB]     at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2(LauncherImpl.java:195)
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB]     at java.lang.Thread.run(Thread.java:834)
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB]     at com.oracle.svm.core.thread.JavaThreads.threadStartRoutine(JavaThreads.java:517)
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB]     at com.oracle.svm.core.windows.WindowsJavaThreads.osThreadStartRoutine(WindowsJavaThreads.java:138)
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB] Caused by: java.lang.NullPointerException
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB]     at com.astropixelprocessor.APP.start(APP.java:41)
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB]     at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$9(LauncherImpl.java:846)
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB]     at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$12(PlatformImpl.java:455)
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB]     at com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:428)
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB]     at java.security.AccessController.doPrivileged(AccessController.java:101)
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB]     at com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:427)
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB]     at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB]     at com.oracle.svm.jni.JNIJavaCallWrappers.jniInvoke_VA_LIST:Ljava_lang_Runnable_2_0002erun_00028_00029V(JNIJavaCallWrappers.java:0)
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB]     at com.sun.glass.ui.win.WinApplication._runLoop(WinApplication.java)
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB]     at com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:174)
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB]     ... 3 more
[Fri Oct 02 19:34:12 CEST 2020][FINE] Result for run until end: 0
plugins {
    id 'java'
    id 'application'
    id 'distribution'
    id 'org.openjfx.javafxplugin' version '0.0.9'
    id 'com.gluonhq.client-gradle-plugin' version '0.1.31'
    id 'org.beryx.jlink' version '2.12.0'
}

repositories {
    mavenCentral()
}

dependencies {
    testImplementation('junit:junit:4.13')
}

group 'com.ariesproductions'
version '1.0-SNAPSHOT'
sourceCompatibility = 11
mainClassName = 'com.astropixelprocessor.Main'

javafx {
    version = '15'
    modules = ['javafx.controls', 'javafx.fxml']
}

gluonClient {
    reflectionList = ["com.astropixelprocessor.APP"]
}

jar {
    manifest {
        attributes 'Main-Class': 'com.astropixelprocessor.Main'
    }
    from {
        configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
    }
}
public class APP extends Application {

    private static final String mainViewTitle = "my app";
    private static final String mainViewPath = "/views/MainView.fxml";
    private static final String themePath = "/dark-theme.css";

    private Stage primaryStage;

    public APP() {}

    public void show(){
        launch();
    }

    // JavaFX start method, application entry point
    @Override
    public void start(Stage primaryStage) {

        this.primaryStage = primaryStage;

        FXMLLoader primarySceneViewLoader = new FXMLLoader(getClass().getResource(mainViewPath));

        Parent primarySceneRootNode = null;

        try {
            primarySceneRootNode = primarySceneViewLoader.load();
        } catch (Exception e) {
            System.err.println("There was a problem loading the main view fxml; " + e.toString());
        }

        assert primarySceneRootNode != null;
        primarySceneRootNode.getStylesheets().add(String.valueOf(getClass().getResource(themePath)));

        primaryStage.setTitle(mainViewTitle);
        primaryStage.setScene(new Scene(primarySceneRootNode));

        try {
            primaryStage.show();
        } catch (IllegalStateException e) {
            System.err.println("The primary stage show method is called on a thread other than the JavaFX Application Thread.");
            e.printStackTrace();
        }

        // Catch the application close event and display a quit stage
        primaryStage.setOnCloseRequest(windowEvent ->

        {
            // Stop the system from acting on this event
            windowEvent.consume();
            SimpleAlertViewController.showQuitStage();
        });
    }
}
<VBox fx:id="mainWindow" xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.astropixelprocessor.controllers.MainViewController">
    <MenuBar prefWidth="1280.0" VBox.vgrow="NEVER">
        <Menu mnemonicParsing="false" text="File">
            <MenuItem mnemonicParsing="false" text="New" />
            <MenuItem mnemonicParsing="false" text="Open…" />
            <Menu mnemonicParsing="false" text="Open Recent" />
            <SeparatorMenuItem mnemonicParsing="false" />
            <MenuItem mnemonicParsing="false" text="Close" />
            <MenuItem mnemonicParsing="false" text="Save" />
            <MenuItem mnemonicParsing="false" text="Save As…" />
            <MenuItem mnemonicParsing="false" text="Revert" />
            <SeparatorMenuItem mnemonicParsing="false" />
            <MenuItem mnemonicParsing="false" text="Preferences…" />
            <SeparatorMenuItem mnemonicParsing="false" />
            <MenuItem fx:id="quitMenuItem" mnemonicParsing="false" onAction="#menuHandler" text="Quit">
            <accelerator>
               <KeyCodeCombination alt="UP" code="Q" control="UP" meta="UP" shift="UP" shortcut="DOWN" />
            </accelerator></MenuItem>
        </Menu>
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB] javafx.fxml.LoadException: 
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB] views/MainView.fxml
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB] 
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at javafx.fxml.FXMLLoader.constructLoadException(FXMLLoader.java:2629)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at javafx.fxml.FXMLLoader.importClass(FXMLLoader.java:2867)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at javafx.fxml.FXMLLoader.processImport(FXMLLoader.java:2711)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at javafx.fxml.FXMLLoader.processProcessingInstruction(FXMLLoader.java:2680)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2546)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2470)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2439)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at com.astropixelprocessor.APP.start(APP.java:35)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$9(LauncherImpl.java:846)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$12(PlatformImpl.java:455)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:428)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at java.security.AccessController.doPrivileged(AccessController.java:101)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:427)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at com.oracle.svm.jni.JNIJavaCallWrappers.jniInvoke_VA_LIST:Ljava_lang_Runnable_2_0002erun_00028_00029V(JNIJavaCallWrappers.java:0)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at com.sun.glass.ui.win.WinApplication._runLoop(WinApplication.java)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:174)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at java.lang.Thread.run(Thread.java:834)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at com.oracle.svm.core.thread.JavaThreads.threadStartRoutine(JavaThreads.java:517)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at com.oracle.svm.core.windows.WindowsJavaThreads.osThreadStartRoutine(WindowsJavaThreads.java:138)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB] Caused by: java.lang.ClassNotFoundException: javafx.scene.control.ComboBox
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at com.oracle.svm.core.hub.ClassForNameSupport.forName(ClassForNameSupport.java:60)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at java.lang.ClassLoader.loadClass(ClassLoader.java:233)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at javafx.fxml.FXMLLoader.loadTypeForPackage(FXMLLoader.java:2935)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at javafx.fxml.FXMLLoader.loadType(FXMLLoader.java:2924)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at javafx.fxml.FXMLLoader.importClass(FXMLLoader.java:2865)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     ... 18 more
构建.渐变

[Fri Oct 02 19:34:12 CEST 2020][INFO] ==================== RUN TASK ====================
[Fri Oct 02 19:34:12 CEST 2020][FINE] PB Command for run until end: C:\Users\vince\Documents\Company\Company-APP\Programming\Java\Projects\AstroPixelProcessor-javafx\build\client\x86_64-windows\AstroPixelProcessor-javafx.exe
[Fri Oct 02 19:34:12 CEST 2020][FINE] Start process run until end...
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB] There was a problem loading the main view fxml; javafx.fxml.LoadException: 
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB] views/MainView.fxml
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB] 
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB] Exception in Application start method
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB] Something went wrong with launching the JavaFX runtime.
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB] java.lang.RuntimeException: Exception in Application start method
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB]     at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:900)
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB]     at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2(LauncherImpl.java:195)
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB]     at java.lang.Thread.run(Thread.java:834)
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB]     at com.oracle.svm.core.thread.JavaThreads.threadStartRoutine(JavaThreads.java:517)
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB]     at com.oracle.svm.core.windows.WindowsJavaThreads.osThreadStartRoutine(WindowsJavaThreads.java:138)
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB] Caused by: java.lang.NullPointerException
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB]     at com.astropixelprocessor.APP.start(APP.java:41)
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB]     at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$9(LauncherImpl.java:846)
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB]     at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$12(PlatformImpl.java:455)
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB]     at com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:428)
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB]     at java.security.AccessController.doPrivileged(AccessController.java:101)
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB]     at com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:427)
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB]     at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB]     at com.oracle.svm.jni.JNIJavaCallWrappers.jniInvoke_VA_LIST:Ljava_lang_Runnable_2_0002erun_00028_00029V(JNIJavaCallWrappers.java:0)
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB]     at com.sun.glass.ui.win.WinApplication._runLoop(WinApplication.java)
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB]     at com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:174)
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB]     ... 3 more
[Fri Oct 02 19:34:12 CEST 2020][FINE] Result for run until end: 0
plugins {
    id 'java'
    id 'application'
    id 'distribution'
    id 'org.openjfx.javafxplugin' version '0.0.9'
    id 'com.gluonhq.client-gradle-plugin' version '0.1.31'
    id 'org.beryx.jlink' version '2.12.0'
}

repositories {
    mavenCentral()
}

dependencies {
    testImplementation('junit:junit:4.13')
}

group 'com.ariesproductions'
version '1.0-SNAPSHOT'
sourceCompatibility = 11
mainClassName = 'com.astropixelprocessor.Main'

javafx {
    version = '15'
    modules = ['javafx.controls', 'javafx.fxml']
}

gluonClient {
    reflectionList = ["com.astropixelprocessor.APP"]
}

jar {
    manifest {
        attributes 'Main-Class': 'com.astropixelprocessor.Main'
    }
    from {
        configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
    }
}
public class APP extends Application {

    private static final String mainViewTitle = "my app";
    private static final String mainViewPath = "/views/MainView.fxml";
    private static final String themePath = "/dark-theme.css";

    private Stage primaryStage;

    public APP() {}

    public void show(){
        launch();
    }

    // JavaFX start method, application entry point
    @Override
    public void start(Stage primaryStage) {

        this.primaryStage = primaryStage;

        FXMLLoader primarySceneViewLoader = new FXMLLoader(getClass().getResource(mainViewPath));

        Parent primarySceneRootNode = null;

        try {
            primarySceneRootNode = primarySceneViewLoader.load();
        } catch (Exception e) {
            System.err.println("There was a problem loading the main view fxml; " + e.toString());
        }

        assert primarySceneRootNode != null;
        primarySceneRootNode.getStylesheets().add(String.valueOf(getClass().getResource(themePath)));

        primaryStage.setTitle(mainViewTitle);
        primaryStage.setScene(new Scene(primarySceneRootNode));

        try {
            primaryStage.show();
        } catch (IllegalStateException e) {
            System.err.println("The primary stage show method is called on a thread other than the JavaFX Application Thread.");
            e.printStackTrace();
        }

        // Catch the application close event and display a quit stage
        primaryStage.setOnCloseRequest(windowEvent ->

        {
            // Stop the system from acting on this event
            windowEvent.consume();
            SimpleAlertViewController.showQuitStage();
        });
    }
}
<VBox fx:id="mainWindow" xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.astropixelprocessor.controllers.MainViewController">
    <MenuBar prefWidth="1280.0" VBox.vgrow="NEVER">
        <Menu mnemonicParsing="false" text="File">
            <MenuItem mnemonicParsing="false" text="New" />
            <MenuItem mnemonicParsing="false" text="Open…" />
            <Menu mnemonicParsing="false" text="Open Recent" />
            <SeparatorMenuItem mnemonicParsing="false" />
            <MenuItem mnemonicParsing="false" text="Close" />
            <MenuItem mnemonicParsing="false" text="Save" />
            <MenuItem mnemonicParsing="false" text="Save As…" />
            <MenuItem mnemonicParsing="false" text="Revert" />
            <SeparatorMenuItem mnemonicParsing="false" />
            <MenuItem mnemonicParsing="false" text="Preferences…" />
            <SeparatorMenuItem mnemonicParsing="false" />
            <MenuItem fx:id="quitMenuItem" mnemonicParsing="false" onAction="#menuHandler" text="Quit">
            <accelerator>
               <KeyCodeCombination alt="UP" code="Q" control="UP" meta="UP" shift="UP" shortcut="DOWN" />
            </accelerator></MenuItem>
        </Menu>
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB] javafx.fxml.LoadException: 
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB] views/MainView.fxml
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB] 
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at javafx.fxml.FXMLLoader.constructLoadException(FXMLLoader.java:2629)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at javafx.fxml.FXMLLoader.importClass(FXMLLoader.java:2867)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at javafx.fxml.FXMLLoader.processImport(FXMLLoader.java:2711)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at javafx.fxml.FXMLLoader.processProcessingInstruction(FXMLLoader.java:2680)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2546)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2470)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2439)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at com.astropixelprocessor.APP.start(APP.java:35)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$9(LauncherImpl.java:846)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$12(PlatformImpl.java:455)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:428)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at java.security.AccessController.doPrivileged(AccessController.java:101)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:427)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at com.oracle.svm.jni.JNIJavaCallWrappers.jniInvoke_VA_LIST:Ljava_lang_Runnable_2_0002erun_00028_00029V(JNIJavaCallWrappers.java:0)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at com.sun.glass.ui.win.WinApplication._runLoop(WinApplication.java)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:174)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at java.lang.Thread.run(Thread.java:834)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at com.oracle.svm.core.thread.JavaThreads.threadStartRoutine(JavaThreads.java:517)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at com.oracle.svm.core.windows.WindowsJavaThreads.osThreadStartRoutine(WindowsJavaThreads.java:138)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB] Caused by: java.lang.ClassNotFoundException: javafx.scene.control.ComboBox
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at com.oracle.svm.core.hub.ClassForNameSupport.forName(ClassForNameSupport.java:60)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at java.lang.ClassLoader.loadClass(ClassLoader.java:233)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at javafx.fxml.FXMLLoader.loadTypeForPackage(FXMLLoader.java:2935)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at javafx.fxml.FXMLLoader.loadType(FXMLLoader.java:2924)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at javafx.fxml.FXMLLoader.importClass(FXMLLoader.java:2865)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     ... 18 more
这是相关的课程

[Fri Oct 02 19:34:12 CEST 2020][INFO] ==================== RUN TASK ====================
[Fri Oct 02 19:34:12 CEST 2020][FINE] PB Command for run until end: C:\Users\vince\Documents\Company\Company-APP\Programming\Java\Projects\AstroPixelProcessor-javafx\build\client\x86_64-windows\AstroPixelProcessor-javafx.exe
[Fri Oct 02 19:34:12 CEST 2020][FINE] Start process run until end...
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB] There was a problem loading the main view fxml; javafx.fxml.LoadException: 
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB] views/MainView.fxml
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB] 
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB] Exception in Application start method
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB] Something went wrong with launching the JavaFX runtime.
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB] java.lang.RuntimeException: Exception in Application start method
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB]     at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:900)
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB]     at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2(LauncherImpl.java:195)
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB]     at java.lang.Thread.run(Thread.java:834)
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB]     at com.oracle.svm.core.thread.JavaThreads.threadStartRoutine(JavaThreads.java:517)
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB]     at com.oracle.svm.core.windows.WindowsJavaThreads.osThreadStartRoutine(WindowsJavaThreads.java:138)
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB] Caused by: java.lang.NullPointerException
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB]     at com.astropixelprocessor.APP.start(APP.java:41)
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB]     at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$9(LauncherImpl.java:846)
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB]     at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$12(PlatformImpl.java:455)
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB]     at com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:428)
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB]     at java.security.AccessController.doPrivileged(AccessController.java:101)
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB]     at com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:427)
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB]     at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB]     at com.oracle.svm.jni.JNIJavaCallWrappers.jniInvoke_VA_LIST:Ljava_lang_Runnable_2_0002erun_00028_00029V(JNIJavaCallWrappers.java:0)
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB]     at com.sun.glass.ui.win.WinApplication._runLoop(WinApplication.java)
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB]     at com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:174)
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB]     ... 3 more
[Fri Oct 02 19:34:12 CEST 2020][FINE] Result for run until end: 0
plugins {
    id 'java'
    id 'application'
    id 'distribution'
    id 'org.openjfx.javafxplugin' version '0.0.9'
    id 'com.gluonhq.client-gradle-plugin' version '0.1.31'
    id 'org.beryx.jlink' version '2.12.0'
}

repositories {
    mavenCentral()
}

dependencies {
    testImplementation('junit:junit:4.13')
}

group 'com.ariesproductions'
version '1.0-SNAPSHOT'
sourceCompatibility = 11
mainClassName = 'com.astropixelprocessor.Main'

javafx {
    version = '15'
    modules = ['javafx.controls', 'javafx.fxml']
}

gluonClient {
    reflectionList = ["com.astropixelprocessor.APP"]
}

jar {
    manifest {
        attributes 'Main-Class': 'com.astropixelprocessor.Main'
    }
    from {
        configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
    }
}
public class APP extends Application {

    private static final String mainViewTitle = "my app";
    private static final String mainViewPath = "/views/MainView.fxml";
    private static final String themePath = "/dark-theme.css";

    private Stage primaryStage;

    public APP() {}

    public void show(){
        launch();
    }

    // JavaFX start method, application entry point
    @Override
    public void start(Stage primaryStage) {

        this.primaryStage = primaryStage;

        FXMLLoader primarySceneViewLoader = new FXMLLoader(getClass().getResource(mainViewPath));

        Parent primarySceneRootNode = null;

        try {
            primarySceneRootNode = primarySceneViewLoader.load();
        } catch (Exception e) {
            System.err.println("There was a problem loading the main view fxml; " + e.toString());
        }

        assert primarySceneRootNode != null;
        primarySceneRootNode.getStylesheets().add(String.valueOf(getClass().getResource(themePath)));

        primaryStage.setTitle(mainViewTitle);
        primaryStage.setScene(new Scene(primarySceneRootNode));

        try {
            primaryStage.show();
        } catch (IllegalStateException e) {
            System.err.println("The primary stage show method is called on a thread other than the JavaFX Application Thread.");
            e.printStackTrace();
        }

        // Catch the application close event and display a quit stage
        primaryStage.setOnCloseRequest(windowEvent ->

        {
            // Stop the system from acting on this event
            windowEvent.consume();
            SimpleAlertViewController.showQuitStage();
        });
    }
}
<VBox fx:id="mainWindow" xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.astropixelprocessor.controllers.MainViewController">
    <MenuBar prefWidth="1280.0" VBox.vgrow="NEVER">
        <Menu mnemonicParsing="false" text="File">
            <MenuItem mnemonicParsing="false" text="New" />
            <MenuItem mnemonicParsing="false" text="Open…" />
            <Menu mnemonicParsing="false" text="Open Recent" />
            <SeparatorMenuItem mnemonicParsing="false" />
            <MenuItem mnemonicParsing="false" text="Close" />
            <MenuItem mnemonicParsing="false" text="Save" />
            <MenuItem mnemonicParsing="false" text="Save As…" />
            <MenuItem mnemonicParsing="false" text="Revert" />
            <SeparatorMenuItem mnemonicParsing="false" />
            <MenuItem mnemonicParsing="false" text="Preferences…" />
            <SeparatorMenuItem mnemonicParsing="false" />
            <MenuItem fx:id="quitMenuItem" mnemonicParsing="false" onAction="#menuHandler" text="Quit">
            <accelerator>
               <KeyCodeCombination alt="UP" code="Q" control="UP" meta="UP" shift="UP" shortcut="DOWN" />
            </accelerator></MenuItem>
        </Menu>
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB] javafx.fxml.LoadException: 
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB] views/MainView.fxml
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB] 
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at javafx.fxml.FXMLLoader.constructLoadException(FXMLLoader.java:2629)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at javafx.fxml.FXMLLoader.importClass(FXMLLoader.java:2867)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at javafx.fxml.FXMLLoader.processImport(FXMLLoader.java:2711)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at javafx.fxml.FXMLLoader.processProcessingInstruction(FXMLLoader.java:2680)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2546)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2470)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2439)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at com.astropixelprocessor.APP.start(APP.java:35)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$9(LauncherImpl.java:846)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$12(PlatformImpl.java:455)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:428)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at java.security.AccessController.doPrivileged(AccessController.java:101)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:427)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at com.oracle.svm.jni.JNIJavaCallWrappers.jniInvoke_VA_LIST:Ljava_lang_Runnable_2_0002erun_00028_00029V(JNIJavaCallWrappers.java:0)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at com.sun.glass.ui.win.WinApplication._runLoop(WinApplication.java)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:174)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at java.lang.Thread.run(Thread.java:834)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at com.oracle.svm.core.thread.JavaThreads.threadStartRoutine(JavaThreads.java:517)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at com.oracle.svm.core.windows.WindowsJavaThreads.osThreadStartRoutine(WindowsJavaThreads.java:138)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB] Caused by: java.lang.ClassNotFoundException: javafx.scene.control.ComboBox
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at com.oracle.svm.core.hub.ClassForNameSupport.forName(ClassForNameSupport.java:60)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at java.lang.ClassLoader.loadClass(ClassLoader.java:233)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at javafx.fxml.FXMLLoader.loadTypeForPackage(FXMLLoader.java:2935)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at javafx.fxml.FXMLLoader.loadType(FXMLLoader.java:2924)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at javafx.fxml.FXMLLoader.importClass(FXMLLoader.java:2865)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     ... 18 more
我的主视图fxml的一部分

[Fri Oct 02 19:34:12 CEST 2020][INFO] ==================== RUN TASK ====================
[Fri Oct 02 19:34:12 CEST 2020][FINE] PB Command for run until end: C:\Users\vince\Documents\Company\Company-APP\Programming\Java\Projects\AstroPixelProcessor-javafx\build\client\x86_64-windows\AstroPixelProcessor-javafx.exe
[Fri Oct 02 19:34:12 CEST 2020][FINE] Start process run until end...
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB] There was a problem loading the main view fxml; javafx.fxml.LoadException: 
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB] views/MainView.fxml
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB] 
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB] Exception in Application start method
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB] Something went wrong with launching the JavaFX runtime.
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB] java.lang.RuntimeException: Exception in Application start method
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB]     at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:900)
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB]     at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2(LauncherImpl.java:195)
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB]     at java.lang.Thread.run(Thread.java:834)
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB]     at com.oracle.svm.core.thread.JavaThreads.threadStartRoutine(JavaThreads.java:517)
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB]     at com.oracle.svm.core.windows.WindowsJavaThreads.osThreadStartRoutine(WindowsJavaThreads.java:138)
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB] Caused by: java.lang.NullPointerException
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB]     at com.astropixelprocessor.APP.start(APP.java:41)
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB]     at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$9(LauncherImpl.java:846)
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB]     at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$12(PlatformImpl.java:455)
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB]     at com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:428)
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB]     at java.security.AccessController.doPrivileged(AccessController.java:101)
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB]     at com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:427)
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB]     at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB]     at com.oracle.svm.jni.JNIJavaCallWrappers.jniInvoke_VA_LIST:Ljava_lang_Runnable_2_0002erun_00028_00029V(JNIJavaCallWrappers.java:0)
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB]     at com.sun.glass.ui.win.WinApplication._runLoop(WinApplication.java)
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB]     at com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:174)
[Fri Oct 02 19:34:12 CEST 2020][FINE] [SUB]     ... 3 more
[Fri Oct 02 19:34:12 CEST 2020][FINE] Result for run until end: 0
plugins {
    id 'java'
    id 'application'
    id 'distribution'
    id 'org.openjfx.javafxplugin' version '0.0.9'
    id 'com.gluonhq.client-gradle-plugin' version '0.1.31'
    id 'org.beryx.jlink' version '2.12.0'
}

repositories {
    mavenCentral()
}

dependencies {
    testImplementation('junit:junit:4.13')
}

group 'com.ariesproductions'
version '1.0-SNAPSHOT'
sourceCompatibility = 11
mainClassName = 'com.astropixelprocessor.Main'

javafx {
    version = '15'
    modules = ['javafx.controls', 'javafx.fxml']
}

gluonClient {
    reflectionList = ["com.astropixelprocessor.APP"]
}

jar {
    manifest {
        attributes 'Main-Class': 'com.astropixelprocessor.Main'
    }
    from {
        configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
    }
}
public class APP extends Application {

    private static final String mainViewTitle = "my app";
    private static final String mainViewPath = "/views/MainView.fxml";
    private static final String themePath = "/dark-theme.css";

    private Stage primaryStage;

    public APP() {}

    public void show(){
        launch();
    }

    // JavaFX start method, application entry point
    @Override
    public void start(Stage primaryStage) {

        this.primaryStage = primaryStage;

        FXMLLoader primarySceneViewLoader = new FXMLLoader(getClass().getResource(mainViewPath));

        Parent primarySceneRootNode = null;

        try {
            primarySceneRootNode = primarySceneViewLoader.load();
        } catch (Exception e) {
            System.err.println("There was a problem loading the main view fxml; " + e.toString());
        }

        assert primarySceneRootNode != null;
        primarySceneRootNode.getStylesheets().add(String.valueOf(getClass().getResource(themePath)));

        primaryStage.setTitle(mainViewTitle);
        primaryStage.setScene(new Scene(primarySceneRootNode));

        try {
            primaryStage.show();
        } catch (IllegalStateException e) {
            System.err.println("The primary stage show method is called on a thread other than the JavaFX Application Thread.");
            e.printStackTrace();
        }

        // Catch the application close event and display a quit stage
        primaryStage.setOnCloseRequest(windowEvent ->

        {
            // Stop the system from acting on this event
            windowEvent.consume();
            SimpleAlertViewController.showQuitStage();
        });
    }
}
<VBox fx:id="mainWindow" xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.astropixelprocessor.controllers.MainViewController">
    <MenuBar prefWidth="1280.0" VBox.vgrow="NEVER">
        <Menu mnemonicParsing="false" text="File">
            <MenuItem mnemonicParsing="false" text="New" />
            <MenuItem mnemonicParsing="false" text="Open…" />
            <Menu mnemonicParsing="false" text="Open Recent" />
            <SeparatorMenuItem mnemonicParsing="false" />
            <MenuItem mnemonicParsing="false" text="Close" />
            <MenuItem mnemonicParsing="false" text="Save" />
            <MenuItem mnemonicParsing="false" text="Save As…" />
            <MenuItem mnemonicParsing="false" text="Revert" />
            <SeparatorMenuItem mnemonicParsing="false" />
            <MenuItem mnemonicParsing="false" text="Preferences…" />
            <SeparatorMenuItem mnemonicParsing="false" />
            <MenuItem fx:id="quitMenuItem" mnemonicParsing="false" onAction="#menuHandler" text="Quit">
            <accelerator>
               <KeyCodeCombination alt="UP" code="Q" control="UP" meta="UP" shift="UP" shortcut="DOWN" />
            </accelerator></MenuItem>
        </Menu>
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB] javafx.fxml.LoadException: 
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB] views/MainView.fxml
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB] 
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at javafx.fxml.FXMLLoader.constructLoadException(FXMLLoader.java:2629)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at javafx.fxml.FXMLLoader.importClass(FXMLLoader.java:2867)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at javafx.fxml.FXMLLoader.processImport(FXMLLoader.java:2711)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at javafx.fxml.FXMLLoader.processProcessingInstruction(FXMLLoader.java:2680)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2546)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2470)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2439)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at com.astropixelprocessor.APP.start(APP.java:35)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$9(LauncherImpl.java:846)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$12(PlatformImpl.java:455)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:428)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at java.security.AccessController.doPrivileged(AccessController.java:101)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:427)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at com.oracle.svm.jni.JNIJavaCallWrappers.jniInvoke_VA_LIST:Ljava_lang_Runnable_2_0002erun_00028_00029V(JNIJavaCallWrappers.java:0)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at com.sun.glass.ui.win.WinApplication._runLoop(WinApplication.java)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:174)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at java.lang.Thread.run(Thread.java:834)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at com.oracle.svm.core.thread.JavaThreads.threadStartRoutine(JavaThreads.java:517)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at com.oracle.svm.core.windows.WindowsJavaThreads.osThreadStartRoutine(WindowsJavaThreads.java:138)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB] Caused by: java.lang.ClassNotFoundException: javafx.scene.control.ComboBox
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at com.oracle.svm.core.hub.ClassForNameSupport.forName(ClassForNameSupport.java:60)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at java.lang.ClassLoader.loadClass(ClassLoader.java:233)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at javafx.fxml.FXMLLoader.loadTypeForPackage(FXMLLoader.java:2935)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at javafx.fxml.FXMLLoader.loadType(FXMLLoader.java:2924)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     at javafx.fxml.FXMLLoader.importClass(FXMLLoader.java:2865)
[Sat Oct 03 13:50:21 CEST 2020][FINE] [SUB]     ... 18 more

@JoséPereda我也在上面发布了课程代码。该类实际上位于reflectionlist中,如我的build.gradle configuration.Thx中所示,但您仍然缺少FXML文件中
fx:controller
中的控制器类。我看到异常提到MainView。@JoséPereda Mm,所以我粘贴了MainView FXML的一部分,但您的意思是FXML的控制器也是一个反射类吗?抱歉,我对反射非常陌生,我认为如果类包含反射方法(如(getClass())等),那么它就是反射的。请参阅,FXML文件中找到的所有类和方法都由FXMLLoader通过调用reflection@Jos佩雷达:好的,我会读得更好,谢谢。我现在确实尝试将其添加到reflectionlist中,但不幸的是,错误保持不变。