Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [pde-dev] Eclipse cannot find required libraries in plugin

Hi Brian,
I can run using the eclipse with PDE without problems. But when I try
to run in a simple eclipse environment I get these
NoClassDefFoundError.
    
Follow all my confiurations files.

The plugin.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <?eclipse version="3.0"?>
    <plugin>    
       <extension
             point="org.eclipse.ui.editors">
          <editor
                name="Gerador de Código Netra"
                extensions="gcnetra"
                icon="icons/sample.gif"
               
contributorClass="br.com.netra.gcn.plugin.editors.GeradorCodigoEditorContributor"
                class="br.com.netra.gcn.plugin.editors.GeradorCodigoEditor"
                id="br.com.netra.gcn.plugin.editors.GeradorCodigoEditor">
          </editor>
       </extension>
       <extension
             point="org.eclipse.ui.newWizards">
          <category
                name="Netra"
                id="netra_category">
          </category>
          <wizard
                name="Projeto Gerador de Código"
                icon="icons/sample.gif"
                category="netra_category"
                class="br.com.netra.gcn.plugin.wizards.GeradorCodigoNewWizard"
                id="br.com.netra.gcn.plugin.wizards.GeradorCodigoNewWizard">
          </wizard>
       </extension>
    
    <!-- I think that this tag is useless in this case -->
       <runtime>
            <library name="commons-beanutils.jar"/>
            <library name="commons-collections-3.1.jar"/>
            <library name="commons-configuration-1.1.jar"/>
            <library name="commons-lang-2.0.jar"/>
            <library name="commons-logging.jar"/>
            <library name="core-umt0.81.jar"/>
            <library name="gerador-codigo-netra.jar"/>
            <library name="log4j-1.2.9.jar"/>
            <library name="velocity-1.4.jar"/>
       </runtime>    
    </plugin>

    
The build.properties (I think is all right):
    source.. = src/
    output.. = bin/
    bin.includes = plugin.xml,\
                   META-INF/,\
                   resources/,\
                   .,\
                   icons/,\
                   commons-beanutils.jar,\
                   commons-collections-3.1.jar,\
                   commons-configuration-1.1.jar,\
                   commons-lang-2.0.jar,\
                   commons-logging.jar,\
                   core-umt0.81.jar,\
                   gerador-codigo-netra.jar,\
                   velocity-1.4.jar,\
                   log4j-1.2.9.jar,\
                   build.properties
    jars.compile.order = .
    jars.extra.classpath = commons-beanutils.jar,\
                           commons-collections-3.1.jar,\
                           commons-configuration-1.1.jar,\
                           commons-lang-2.0.jar,\
                           commons-logging.jar,\
                           core-umt0.81.jar,\
                           gerador-codigo-netra.jar,\
                           log4j-1.2.9.jar,\
                           velocity-1.4.jar
                           

Finally, the MANIFEST.MF:
    Manifest-Version: 1.0
    Bundle-ManifestVersion: 2
    Bundle-Name: Gerador de Código Netra
    Bundle-SymbolicName: br.com.netra.gcn; singleton:=true
    Bundle-Version: 1.0.0
    Bundle-Activator: br.com.netra.gcn.plugin.PluginGCN
    Bundle-Vendor: Netra Tecnologia Ltda
    Bundle-Localization: plugin
    ## I dont know why, but everytime I have to add this line
    ## because the PDE remove it.
    Bundle-Classpath:  commons-beanutils.jar, 
     commons-collections-3.1.jar, 
     commons-configuration-1.1.jar, 
     commons-lang-2.0.jar, 
     commons-logging.jar, 
     core-umt0.81.jar, 
     gerador-codigo-netra.jar, 
     velocity-1.4.jar, 
     log4j-1.2.9.jar, 
     build.properties
    Require-Bundle: org.eclipse.ui,
     org.eclipse.core.runtime,
     org.eclipse.core.resources,
     org.eclipse.ui.editors,
     org.eclipse.ui.ide,
     org.eclipse.ui.workbench.texteditor,
     org.eclipse.ui.forms,
     org.eclipse.ui.console,
     org.eclipse.jface.text
    Eclipse-AutoStart: true
    Export-Package: br.com.netra.gcn.gui,
     br.com.netra.gcn.plugin,
     br.com.netra.gcn.plugin.editors,
     br.com.netra.gcn.plugin.editors.pages,
     br.com.netra.gcn.plugin.wizards,
     br.com.netra.gcn.transformer,
     br.com.netra.gcn.xmilight,
     br.com.netra.gcn.xmilight.enumerations,
     br.com.netra.gcn.xmilight.parse,
     br.com.netra.gcn.xmilight.parse.old
    Export-Package: br.com.netra.gcn.gui,
     br.com.netra.gcn.plugin,
     br.com.netra.gcn.plugin.editors,
     br.com.netra.gcn.plugin.editors.pages,
     br.com.netra.gcn.plugin.wizards,
     br.com.netra.gcn.transformer,
     br.com.netra.gcn.xmilight,
     br.com.netra.gcn.xmilight.enumerations,
     br.com.netra.gcn.xmilight.parse,
     br.com.netra.gcn.xmilight.parse.old,
     umtmain


Thank you, Brian.
Vinícius Pitta Lima de Araújo

On 9/16/05, Brian de Alwis <bsd@xxxxxxxxx> wrote:
> Hi Vinícius.  It would be useful if you posted your MANIFEST.MF,
> plugin.xml, and the actual error.
> 
> If you've listed the .jar in the MANIFEST.MF, you don't need it in
> your plugin.xml.
> 
> Have you managed to run your plugin using a PDE runtime image?
> 
> Brian.
> 
> --
>  Brian de Alwis | Software Practices Lab | UBC | http://www.cs.ubc.ca/~bsd/
> "There is much pleasure to be gained in useless knowledge." - Bertrand Russell
>


Back to the top