gluonhq / gluonfx-maven-plugin

Plugin that simplifies creating native images for Java/JavaFX maven projects
BSD 3-Clause "New" or "Revised" License
189 stars 39 forks source link

no awt in Java. library. path #498

Open liujinge opened 9 months ago

liujinge commented 9 months ago

I execute mvn gluonfx: compile, mvn gluonfx: link, and mvn gluonfx: package all normally, but the exe program cannot run with the following error:

Exception in Application start method

[Tuesday, January 2 14:52:35 CST 2024] [Information] [SUB] Exception in thread "main" java. lang. RuntimeException: Exception in Application start method

[Tuesday, January 2 14:52:35 CST 2024] [Information] [SUB] at com. sun. davafx. application. LauncherImpl. launchApplication 1 (LauncherImpl. dava: 893)

[Tuesday, January 2 14:52:35 CST 2024] [Information] [SUB] at com. sun. davafx. application. LauncherImpl. lambda $launchApplication $2 (LauncherImpl. java: 195)

[Tuesday, January 2 14:52:35 CST 2024] [Information] [SUB] at Java. lang. Thread. run (Thread. java: 833)

[Tuesday, January 2 14:52:35 CST 2024] [Information] [SUB] at com. oracle. svm. core. thread. PlatformThreads. threadStartRoutine (PlatformThreads. java: 704)

[Tuesday, January 2 14:52:35 CST 2024] [Information] [SUB] at com. oracle. svm. core. windows. Windows Platform Threads. osThreadStartRoutine (Windows Platform Threads. java: 143)

[Tuesday, January 2 14:52:35 CST 2024] [Information] [SUB] Caused by: Java. lang. UnsatisfiedLinkError: no awt in Java. library. path

I can execute the mvn gluonfx: run program normally and pop up a window, but the mvn gluonfx: nativerun program cannot run and execute

What should I do?

liujinge commented 9 months ago

It should be that staticJavaLibs is missing awt, which is located in Java home/bin awt.DLL