2009-09-09 71 views
1

我正在构建一个应用程序,该应用程序建立在Eclipse之上。虽然窗口上一切正常,Sles 32和64位,但在SLED 64位上,欢迎页面没有显示。当您尝试打开欢迎页面时,它会抛出MalformedUrl异常与 “无法加载Swt样式:content/shared.css”作为错误消息。Eclipse:欢迎页面未显示

当我在网上检查时,我发现有几个人似乎遇到了这个问题,但我找不到解决方案。请帮帮我。

+0

当我安装新鲜的日食时,欢迎页面是我禁用的第一件事...什么使它对你如此重要? – 2009-09-09 13:09:11

+0

我的应用程序构建在Eclipse之上,欢迎页面非常重要。 – Duleb 2009-09-09 13:11:08

+0

我找不到任何特定于此配置的东西,因此可能是您的应用程序的调试会话是为了查看在SLED 64上的eclipse开始时与Windows会话中检索到什么样的'IntroModelRoot'。 – VonC 2009-09-09 15:10:09

回答

0

发现问题来源。我使用的是不兼容版本xulrunner。改变这个版本兼容eclipse修复了这个问题。

0

该错误消息直接来自SharedStyleManager类。

try { 
    URL JavaDoc styleURL = new URL JavaDoc(style); 
    InputStream JavaDoc is = styleURL.openStream(); 
    properties.load(is); 
    is.close(); 
    context.path = new Path(style).removeLastSegments(1); 
    String JavaDoc t = (String JavaDoc)properties.get("theme"); //$NON-NLS-1$ 
    if (t!=null && t.trim().equalsIgnoreCase("true")) //$NON-NLS-1$ 
     context.inTheme = true; 
} catch (Exception JavaDoc e) { 
    Log.error("Could not load SWT style: " + style, e); //$NON-NLS-1$ 
} 

你有“无法加载SWT风格”异常中的异常捆绑? (在您的错误视图中)

+0

下面是详细信息 Messgae:无法加载SWT风格:内容/ shared.css 异常堆栈跟踪: java.net.MalformedURLException:无协议:内容/ shared.css \t在的java.net.URL 。 (URL.java:567) \t at java.net.URL。 (URL.java:464) \t at java.net.URL。 (URL.java:413) \t at org.eclipse.ui.internal.intro.impl.swt.SharedStyleManager.load(SharedStyleManager.java:66) \t at org.eclipse.ui.internal.intro.impl。 swt.SharedStyleManager。 (SharedStyleManager.java:58) \t at org.eclipse.ui.internal.intro.impl.presentations.FormIntroPartImplementation。 (FormIntroPartImplementation.java:94) – Duleb 2009-09-09 13:55:55

+0

在org.eclipse.ui.internal.intro.impl.model.IntroPartPresentation.createPartControl(IntroPartPresentation.java:257) \t在org.eclipse.ui.intro.config.CustomizableIntroPart.createPartControl (CustomizableIntroPart.java:194) \t在org.eclipse.ui.internal.ViewIntroAdapterPart.createPartControl(ViewIntroAdapterPart.java:98) \t在org.eclipse.ui.internal.ViewReference.createPartHelper(ViewReference.java:371) \t at org.eclipse.ui.internal.ViewReference.createPart(ViewReference.java:230) \t at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:594) – Duleb 2009-09-09 13:56:38

+0

at org.ecli在org.eclipse.ui.internal.WorkbenchPage上使用pse.ui.internal.Perspective.showView(Perspective.java:2131) \t at org.eclipse.ui.internal.WorkbenchPage.busyShowView(WorkbenchPage.java:1062) \t .RUN(WorkbenchPage。的java:3773) \t在org.eclipse.swt.custom.BusyIndi​​cator.showWhile(BusyIndi​​cator.java:70) \t在org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:3770) \t在有机.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:3746) \t at org.eclipse.ui.internal.WorkbenchIntroManager.createIntro(WorkbenchIntroManager.java:173) – Duleb 2009-09-09 13:57:15