2022-07-05 16:20:34.361 ERROR 9308 --- [nio-8080-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.UnsupportedOperationException: Unable to open DISPLAY] with root cause
java.lang.UnsupportedOperationException: Unable to open DISPLAY
at com.sun.glass.ui.gtk.GtkApplication.lambda$new$5(GtkApplication.java:142) ~[jfxrt.jar:na]
at java.security.AccessController.doPrivileged(Native Method) ~[na:1.8.0_311]
at com.sun.glass.ui.gtk.GtkApplication.<init>(GtkApplication.java:140) ~[jfxrt.jar:na]
at com.sun.glass.ui.gtk.GtkPlatformFactory.createApplication(GtkPlatformFactory.java:41) ~[jfxrt.jar:na]
at com.sun.glass.ui.Application.run(Application.java:147) ~[jfxrt.jar:na]
at com.sun.javafx.tk.quantum.QuantumToolkit.startup(QuantumToolkit.java:279) ~[jfxrt.jar:na]
at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:211) ~[jfxrt.jar:na]
at com.example.demo.test.TestService.test(TestService.java:19) ~[classes!/:0.0.1-SNAPSHOT]
at com.example.demo.test.TestController.test(TestController.java:31) ~[classes!/:0.0.1-SNAPSHOT]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_311]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_311]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_311]
javaFx 在Linux环境打开视图界面报错:Unable to open DISPLAY,求大神解答
最新推荐文章于 2024-11-07 17:10:48 发布