问题描述
我使用 Jsmooth 将我的 Java Swing 应用程序包装为一个 exe,但我看不出有什么方法可以利用 Java 6 启动画面选项.我有以下清单文件:
I wrap my Java Swing application as an exe using Jsmooth but I can see no way to take advantage of Java 6 splash screen option. I have the following manifest file:
Manifest-Version: 1.0
SplashScreen-Image: resources/LOADLOGO.png
Main-Class: se.bookingapp.UI.MainFrame
如果我只需单击应用程序的 jar 文件,就会出现启动画面.但是,JSmooth 生成的 jar 文件的 exe 形式并没有以某种方式显示启动画面.有谁知道为什么?
The splash screen appears if I simply click on the jar file of the application. However, the JSmooth generated exe form of the jar file does not show the splash screen somehow. Does anyone know why?
推荐答案
执行 jar 文件是否有效?例如用WinRar打开,检查manifest是否在META-INF文件夹中,LOADLOGO.png也在正确的文件夹中.
Does it work when you execute the jar file? Open it with WinRar for example, and check if the manifest is into META-INF folder, and LOADLOGO.png is in the right folder too.
这样做之后,它应该可以工作了.这个对我有用.您的清单中没有任何问题.
After doing that, it should work. It works for me. Nothing wrong in your manifest.
这篇关于JSmooth 生成的 exe 不显示启动画面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!