<tfoot id='xpI5O'></tfoot>

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

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

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

    2. 具有其他项目依赖项的 Eclipse 插件项目

      Eclipse Plugin project with other project dependencies(具有其他项目依赖项的 Eclipse 插件项目)
      <i id='fOOxJ'><tr id='fOOxJ'><dt id='fOOxJ'><q id='fOOxJ'><span id='fOOxJ'><b id='fOOxJ'><form id='fOOxJ'><ins id='fOOxJ'></ins><ul id='fOOxJ'></ul><sub id='fOOxJ'></sub></form><legend id='fOOxJ'></legend><bdo id='fOOxJ'><pre id='fOOxJ'><center id='fOOxJ'></center></pre></bdo></b><th id='fOOxJ'></th></span></q></dt></tr></i><div id='fOOxJ'><tfoot id='fOOxJ'></tfoot><dl id='fOOxJ'><fieldset id='fOOxJ'></fieldset></dl></div>

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

            • <bdo id='fOOxJ'></bdo><ul id='fOOxJ'></ul>
            • <tfoot id='fOOxJ'></tfoot>
                <tbody id='fOOxJ'></tbody>
                <legend id='fOOxJ'><style id='fOOxJ'><dir id='fOOxJ'><q id='fOOxJ'></q></dir></style></legend>

              1. 本文介绍了具有其他项目依赖项的 Eclipse 插件项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我有一个 Eclipse 插件项目,它依赖于我的 Eclipse 工作区中的其他项目.在Java Build Path"->Projects"选项卡下添加项目依赖项,并在Order and Export"中选择项目后,我得到一个 java.lang.NoClassDefFoundError.

                I have an Eclipse plugin project, and it depends on other projects that I have in my Eclipse workspace. After adding the project dependencies under "Java Build Path" -> "Projects" tab, and also selecting the project in the "Order and Export" I get a java.lang.NoClassDefFoundError.

                我假设其他项目尚未正确包含在插件中.有谁知道如何解决这个问题?

                I'm assuming that the other projects have not been properly included into the plugin. Does anyone know how to fix this?

                谢谢,詹姆斯

                推荐答案

                Eclipse 插件项目管理依赖项的方式与常规 Java 项目不同.

                An Eclipse plug in project manages dependencies differently than a regular Java project.

                我假设您正在添加带有 .class 文件的包.

                I'm assuming that you're adding packages with .class files.

                在您的 Eclipse 插件项目中定义一个库文件夹.将任何外部类和/或 jar 复制到库文件夹.

                Define a library folder in your Eclipse plug-in project. Copy any external classes and / or jars to the library folder.

                打开 META-INF 目录下的 MANIFEST.MF 文件.您会看到一个底部有 8 个选项卡的格式化编辑器.

                Open up the MANIFEST.MF file under the META-INF directory. You'll see a formatted editor with 8 tabs on the bottom.

                单击运行时选项卡.将 library 文件夹中的外部类和/或 jar 添加到 Classpath.这也会将这些外部类和/或 jar 添加到项目的 Java 构建路径中.

                Click on the Runtime tab. Add the external classes and / or jars in the library folder to the Classpath. This will also add these external classes and or jars to the Java Build Path of the project.

                单击 Dependencies 选项卡,然后在 Imported Packages 对话框中添加其他 Java 项目.您必须选中标有显示未导出的包"的框.如果您的其他 Java 项目是 Eclipse 插件,请将它们添加到所需插件下.

                Click on the Dependencies tab, and add the other Java projects in the Imported Packages dialog. You have to check the box labeled "Show non-exported packages". If your other Java projects are Eclipse plug ins, add them under Required Plug-ins instead.

                这篇关于具有其他项目依赖项的 Eclipse 插件项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                相关文档推荐

                Maven JAVA_HOME environment variable is not defined correctly, but it is(Maven JAVA_HOME 环境变量未正确定义,但它是)
                Java System Environment Variable(Java 系统环境变量)
                Java -classpath option(Java -classpath 选项)
                Read environment variable in SpringBoot(在 SpringBoot 中读取环境变量)
                Tomcat 8 - context.xml use Environment Variable in Datasource(Tomcat 8 - context.xml 在数据源中使用环境变量)
                Issue with JAVA_HOME(JAVA_HOME 的问题)

                  <tbody id='dsDOX'></tbody>

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

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

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

                          <tfoot id='dsDOX'></tfoot>
                        • <legend id='dsDOX'><style id='dsDOX'><dir id='dsDOX'><q id='dsDOX'></q></dir></style></legend>