简体   繁体   English

使用Java Web Start启动Eclipse RCP应用程序时无法启动屏幕

[英]Unable to get splash screen when launching eclipse RCP application using java web start

My application eclipse Java application.I am launching it with a myapp.jnlp file. 我的应用程序使Java应用程序黯然失色。我正在使用myapp.jnlp文件启动它。 On clicking myapp.jnlp file it is launching java application perfectly. 单击myapp.jnlp文件后,它将完美启动Java应用程序。 Now I want to add two splash screen both javaws application splash screen and eclipse equinox launcher application splash screen.I am successful to apply splash screen on javaws application by adding following line in myapp.jnlp file. 现在我想添加两个启动画面,既是javaws应用程序启动画面,又是eclipse equinox启动器应用程序启动画面。通过在myapp.jnlp文件中添加以下行,我成功地将启动画面应用于javaws应用程序。 Now I wish to add splash screen to java application till I will get UI of my application so I refer following links. 现在,我希望在Java应用程序中添加启动画面,直到获得应用程序的UI,因此我参考以下链接。

Kai's blog 凯的博客

Eclipse Bugs Eclipse错误

I have followed all steps correctly in my jnlp file and defined properties correctly. 我在jnlp文件中正确执行了所有步骤,并正确定义了属性。 properties I defied are as follow : 我定义的属性如下:

Still I am unable to get launch splash screen. 仍然无法启动启动画面。

I have also defined property @user.home which has value="C:\\myhome" 我还定义了属性@ user.home,它的值为=“ C:\\ myhome”

When I opened osgi.install.area means location "C:\\myhome\\abc\\workspace\\osgi" I found it blank. 当我打开osgi.install.area时,其位置为“ C:\\ myhome \\ abc \\ workspace \\ osgi”,我发现它为空白。

I have a doubt regarding it that i have done obfuscation in my java application. 我对此有疑问,我在Java应用程序中做了混淆处理。

  • Can this cause any problem? 这会引起任何问题吗?
  • Is splash screen for equinox.launcher in java using reflection? Java中的equinox.launcher启动画面是否使用反射?

Reason for this doubt is when I opened location @user.home\\abc\\workspace , I found exception 引起这种怀疑的原因是当我打开位置@ user.home \\ abc \\ workspace时,我发现了异常

org.osgi.framework.BundleException: State change in progress for bundle "initial@reference:file:../../../../Users/Ajay/AppData/LocalLow/Sun/Java/Deployment/cache/6.0/25/6e811f29-3354dccb/" by thread "javawsApplicationMain".
    at org.eclipse.osgi.framework.internal.core.AbstractBundle.beginStateChange(AbstractBundle.java:1077)
    at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:282)
    at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:417)
    at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:265)
    at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:106)
    at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:453)
    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
    at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:393)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:469)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
    at java.lang.ClassLoader.loadClass(Unknown Source)

Is this a reason that I am not able to get my splash screen. 这是我无法获得启动画面的原因。

I figured out a solution to the problem. 我想出了解决这个问题的办法。 If we create a jar via jar cmdlet, it deletes existing MANIFEST.MF file and will generate a new MANIFEST.MF . 如果我们通过jar cmdlet创建一个jar,它将删除现有的MANIFEST.MF文件,并生成一个新的MANIFEST.MF。 Because of above-mentioned behavior, equinox.launcher plugin is not unable to find corresponding platform plugin. 由于上述行为,Equinox.launcher插件无法找到相应的平台插件。

In order to solve the problem, we are using zip cmdlet to create the jar and the splash screen is working fine. 为了解决该问题,我们使用zip cmdlet创建了jar,并且初始屏幕运行良好。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用Java Web Start的Eclipse RCP应用程序无法启动 - Eclipse RCP application using Java web start not starting up Eclipse RCP应用程序 - 自定义启动画面 - Eclipse RCP application - custom splash screen 获取Eclipse RCP Mac应用程序以显示初始屏幕 - Getting an Eclipse RCP Mac application to show splash screen 从Eclipse启动应用程序时如何启动Java控制台? - How to start the java console when launching an application from Eclipse? 使用bndtools启动Eclipse 3.x RCP应用程序 - Launching an Eclipse 3.x RCP Application using bndtools 使用Java Web Start启动Eclipse应用程序会生成java.lang.ClassNotFoundException:org.eclipse.swt.SWTError - Launching eclipse application with java web start generates java.lang.ClassNotFoundException: org.eclipse.swt.SWTError 使用Java Web Start启动JavaFX 2.2应用程序时出错 - Error when launching JavaFX 2.2 Application with Java Web Start 无法使用Eclipse开始调试Java应用程序 - Unable to start debugging a java application using eclipse 使用启动屏幕启动应用程序时,应用程序已停止 - Application has stopped when launching the app with splash screen 在终端应用程序中使用SWT启动Java Web Start应用程序时,在OS X Mavericks上获取错误 - Get error on OS X Mavericks when launching java web start app using SWT from Terminal app
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM