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,

running a plugin from the pde environment starts it in the same jre as
the main plugin, with all plugins loaded already. In the log file (in
the workspace .metadata directory), do you see an error like 'The
activator ... for bundle ... is invalid'? If the activator is not
started also the plugin classes are not loaded and you get a
ClassNotFoundException. from my experience, I have only had this
message when I missed a dependency.

Maybe you could send the .log file also, so we can have a better look at it.

Regards,
Leen Toelen

On 9/22/05, Ramakrishna RangaRao <rkrangar@xxxxxxx> wrote:
> Hi leen And all ,
>   If there were any plug-in dependancy problem , it should not have
> worked when using plug-in runtime image . I could run the same using
> plug-in runtime(launching a new eclipse window) . And when I miss any
> dependancy , it is giving me compilation error .
> When I am trying to export the plug-in as a jar file , I was getting
> NoClassdefFoundError . When i included in the build.properties file to
> it stopped the exception .
> build.properties:
> =================
> source.. = src/
> output.. = bin/
> bin.includes = plugin.xml,\
>                 META-INF/,\
>                 .,\
>                 CWMClassesNew.jar
>
> jars.extra.classpath = CWMClassesNew.jar
> ========================================
>
>   BUt When I am putting exported jar inside the eclipse installed
> plugins dir , this is giving me the same error . I am not even seeing
> any System.out statements on the console . Please tell me where do I see
> them . FYI , my plug-in is a Builder(to compile an in-house language
> called CWM) plugin .
>
> Thanks and Regards,
> Ranga.
>
> Leen Toelen wrote on 9/22/2005, 2:13 PM:
>
>  > Hi,
>  >
>  > You can always try to add *all* plugins as a dependency in your
>  > plugin. If this solves the problem, you are missing a dependency and
>  > you can leave them out one by one to see which one it is.
>  >
>  > Regards,
>  > Leen Toelen
>  >
>  >
>  > On 9/22/05, Ramakrishna RangaRao <rkrangar@xxxxxxx> wrote:
>  > > Hi All,
>  > >    Even I am facing the similar kind of problems .
>  > > Vinícius Pitta Lima de Araújo  , If u came to know a solution for the
>  > > same , please let me know .
>  > > Thanks,
>  > > Ranga
>  > >
>  > > Vinícius Pitta Lima de Araújo wrote on 9/19/2005, 4:22 PM:
>  > >
>  > >  > 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
>  > >  > >
>  > >  > _______________________________________________
>  > >  > pde-dev mailing list
>  > >  > pde-dev@xxxxxxxxxxx
>  > >  > https://dev.eclipse.org/mailman/listinfo/pde-dev
>  > >  >
>  > >
>  > >
>  > > _______________________________________________
>  > > pde-dev mailing list
>  > > pde-dev@xxxxxxxxxxx
>  > > https://dev.eclipse.org/mailman/listinfo/pde-dev
>  > >
>  > _______________________________________________
>  > pde-dev mailing list
>  > pde-dev@xxxxxxxxxxx
>  > https://dev.eclipse.org/mailman/listinfo/pde-dev
>  >
>
>
>


Back to the top