Class Not Found - JavaFX Native Packaging

I am trying to deploy the program I created, but after installation I got an error. Installation Screenshot

I used Native Packaging to pack it as an EXE installer, and when I click on the specified installer, it says that the main class cannot be found. Here are some screenshots of the error: Class not found and JVM not running error

Why doesn't he find a class?

+4
source share
1 answer

This is not always the best method. However, I had the same problem, but it was resolved.

First, if you use kotlin, create a main class that will be the new entry point as a file Java.

The generated Java file should be as follows:

package {your_package};

import javafx.application.Application;

public class EP extends Main {
    public static void main(String... args) {
        Application.launch(args);
    }
}

Main , . , Main open class Main: Application () {.

EP, , ( ).

exe -native image, , exe, .

○ , .

○ USB .. ( )

0

Source: https://habr.com/ru/post/1625056/


All Articles