Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Problem with access to a class of plugin1 from plugin2
Problem with access to a class of plugin1 from plugin2 [message #184590] Fri, 15 December 2006 11:30 Go to next message
Sophie Andrieu is currently offline Sophie AndrieuFriend
Messages: 38
Registered: July 2009
Member
Hello,

I'm trying to write plugins for Eclipse. There is two plugins :
- plugin1 and plugin2 where plugin2 depends on plugin1 : I want to access
some classes of plugin1 into plugin2.

So, in the plugin1, I define the Runtime and I enumerate the packages of
this plugin1 which will be exposed to other plugins. I configure also the
ExtensionPoints with Add to get into the plugin.xml file the tags :
<extension-point id="utils" name="CommonUtils" schema="schema/utils.exsd"/>
<extension-point id="base" name="CommonBase" schema="schema/base.exsd"/>

Into the plugin2 :
- I add the plugin1 into the dependencies.
- I add the two extensions of plugin1 into Extensions of plugin2.

Then, into the plugin2 I try to call classes of plugin1, there is no error
but when I install my two plugins (plugin1 and plugin2) and when I run the
plugin2, there is an error with the messages
"java.lang.NoClassDefFoundError: plugin1/Activator".
It doesn't find the class of plugin1...

Have I missed somethings ?

Thanks for your help...

Sophie

Sophie.Andrieu@xrce.xerox.com
Re: Problem with access to a class of plugin1 from plugin2 [message #184653 is a reply to message #184590] Fri, 15 December 2006 20:36 Go to previous message
Irum Godil is currently offline Irum GodilFriend
Messages: 35
Registered: July 2009
Member
Right Click on the java project for Plugin2 to bring up the properties. In
the Project References tab add reference to project for plugin1. See if
this works.

Thanks.
Previous Topic:error while trying to upgrade from 3.1 to 3.2
Next Topic:Keymap files?
Goto Forum:
  


Current Time: Fri Mar 29 13:50:20 GMT 2024

Powered by FUDForum. Page generated in 0.09032 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top