<i id='XMset'><tr id='XMset'><dt id='XMset'><q id='XMset'><span id='XMset'><b id='XMset'><form id='XMset'><ins id='XMset'></ins><ul id='XMset'></ul><sub id='XMset'></sub></form><legend id='XMset'></legend><bdo id='XMset'><pre id='XMset'><center id='XMset'></center></pre></bdo></b><th id='XMset'></th></span></q></dt></tr></i><div id='XMset'><tfoot id='XMset'></tfoot><dl id='XMset'><fieldset id='XMset'></fieldset></dl></div>
    1. <small id='XMset'></small><noframes id='XMset'>

      <legend id='XMset'><style id='XMset'><dir id='XMset'><q id='XMset'></q></dir></style></legend>

        <tfoot id='XMset'></tfoot>
          <bdo id='XMset'></bdo><ul id='XMset'></ul>

        尝试运行 Eclipse 产品时出现异常

        Exception while trying to run eclipse product(尝试运行 Eclipse 产品时出现异常)
        • <small id='EV3c7'></small><noframes id='EV3c7'>

            <bdo id='EV3c7'></bdo><ul id='EV3c7'></ul>
              <tbody id='EV3c7'></tbody>

              <legend id='EV3c7'><style id='EV3c7'><dir id='EV3c7'><q id='EV3c7'></q></dir></style></legend><tfoot id='EV3c7'></tfoot>

              1. <i id='EV3c7'><tr id='EV3c7'><dt id='EV3c7'><q id='EV3c7'><span id='EV3c7'><b id='EV3c7'><form id='EV3c7'><ins id='EV3c7'></ins><ul id='EV3c7'></ul><sub id='EV3c7'></sub></form><legend id='EV3c7'></legend><bdo id='EV3c7'><pre id='EV3c7'><center id='EV3c7'></center></pre></bdo></b><th id='EV3c7'></th></span></q></dt></tr></i><div id='EV3c7'><tfoot id='EV3c7'></tfoot><dl id='EV3c7'><fieldset id='EV3c7'></fieldset></dl></div>

                  本文介绍了尝试运行 Eclipse 产品时出现异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我在尝试运行没有错误导出的 Eclipse 产品时遇到以下异常

                  I got the below exception while trying to run an eclipse product which exported without errors

                  java.lang.NullPointerException
                      at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.<init>
                  

                  有什么线索吗?

                  完整的堆栈跟踪:

                  !SESSION 2013-07-23 02:08:52.676 -----------------------------------------------
                  eclipse.buildId=unknown
                  java.version=1.7.0_21
                  java.vendor=Oracle Corporation
                  BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
                  Command-line arguments:  -os linux -ws gtk -arch x86_64
                  
                  !ENTRY org.eclipse.osgi 4 0 2013-07-23 02:08:54.202
                  !MESSAGE Application error
                  !STACK 1
                  java.lang.NullPointerException
                      at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.<init>(ModelServiceImpl.java:124)
                      at org.eclipse.e4.ui.internal.workbench.swt.E4Application.createDefaultContext(E4Application.java:471)
                      at org.eclipse.e4.ui.internal.workbench.swt.E4Application.createE4Workbench(E4Application.java:199)
                      at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:581)
                      at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
                      at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:567)
                      at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
                      at myapp.MyApp.start(MyApp.java:20)
                      at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
                      at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
                      at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
                      at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354)
                      at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
                      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                      at java.lang.reflect.Method.invoke(Method.java:601)
                      at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
                      at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
                      at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
                      at org.eclipse.equinox.launcher.Main.main(Main.java:1426)
                  

                  推荐答案

                  在将我的 Eclipse 3.7 应用程序更新到 4.3 后,我遇到了同样的问题.解决方案是将我的产品文件中标签的内容替换为以下内容:

                  I had the same problem after updating my Eclipse 3.7 application to 4.3. The solution was to replace the contents of the tag in my product file with the following:

                  <configurations>
                     <plugin id="org.eclipse.core.runtime" autoStart="true" startLevel="2" />
                     <plugin id="org.eclipse.equinox.ds" autoStart="true" startLevel="3" />
                     <plugin id="org.eclipse.equinox.event" autoStart="true" startLevel="3" />
                  </configurations>
                  

                  另见 http://wiki.eclipse.org/Eclipse4/RCP/FAQ#Why_won.27t_my_application_start.3F

                  这篇关于尝试运行 Eclipse 产品时出现异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Cannot load 64-bit SWT libraries on 32-bit JVM ( replacing SWT file )(无法在 32 位 JVM 上加载 64 位 SWT 库(替换 SWT 文件))
                  How can I specify the default JVM arguments for programs I run from eclipse?(如何为从 Eclipse 运行的程序指定默认 JVM 参数?)
                  Class JavaLaunchHelper is implemented in both ... libinstrument.dylib. One of the two will be used. Which one is undefined(JavaLaunchHelper 类在... libinstrument.dylib 中都实现了.将使用两者之一.哪个是未定义的) - IT屋-程序员软件开发技术分享
                  Running Eclipse on Windows 7 JRE and JDK not found(找不到在 Windows 7 JRE 和 JDK 上运行 Eclipse)
                  StringBuilder vs. .concat vs. quot;+quot; Operator relative performance different in eclipse than command line?(StringBuilder vs. .concat vs. “+eclipse中的操作员相对性能与命令行不同?)
                  Is there a maximum number you can set Xmx to when trying to increase jvm memory?(尝试增加 jvm 内存时,您可以将 Xmx 设置为最大数量吗?)
                    <tbody id='M88rw'></tbody>

                    <i id='M88rw'><tr id='M88rw'><dt id='M88rw'><q id='M88rw'><span id='M88rw'><b id='M88rw'><form id='M88rw'><ins id='M88rw'></ins><ul id='M88rw'></ul><sub id='M88rw'></sub></form><legend id='M88rw'></legend><bdo id='M88rw'><pre id='M88rw'><center id='M88rw'></center></pre></bdo></b><th id='M88rw'></th></span></q></dt></tr></i><div id='M88rw'><tfoot id='M88rw'></tfoot><dl id='M88rw'><fieldset id='M88rw'></fieldset></dl></div>
                    <tfoot id='M88rw'></tfoot>
                    1. <legend id='M88rw'><style id='M88rw'><dir id='M88rw'><q id='M88rw'></q></dir></style></legend>

                        <bdo id='M88rw'></bdo><ul id='M88rw'></ul>

                            <small id='M88rw'></small><noframes id='M88rw'>