gpt4 book ai didi

java - 使用java在linux平台上启动闪屏

转载 作者:行者123 更新时间:2023-12-03 02:50:16 30 4
gpt4 key购买 nike

我试图在 Linux Ubuntu v10.x 上启动启动屏幕。但是 SplashScreen 类的方法返回 null

SplashScreen.getSplashScreen()

可能是什么原因?

最佳答案

doc also says :

This class cannot be instantiated. Only a single instance of this class can exist, and it may be obtained using the getSplashScreen() static method. In case the splash screen has not been created at application startup via the command line or manifest file option, the getSplashScreen method returns null.

这是 list 示例:

Manifest-Version: 1.0
Main-Class: Test
SplashScreen-Image: filename.gif

这里是命令行示例:

java -splash:filename.gif Test

关于java - 使用java在linux平台上启动闪屏,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12778815/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com