Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Why JDT does not see my plugins classes?
Why JDT does not see my plugins classes? [message #643073] Fri, 03 December 2010 22:16 Go to next message
Eclipse UserFriend
Originally posted by: agranov.allmail.net

We have three plugins - studio,support and parser

Studio requires both support and parser (they listed as required in
studio manifest)

If you import all 3 projects into the workspace – everything builds fine

Now export support project to support.jar plugin and/or parser project
to parser.jar plugin

Drop these plugins into eclipse/plugins and remove projects support and
parser from workspace

Studio project will not build now – java compiler does not see classes
from support.jar and/or parser.jar dropped into eclipse/plugins (though
the packages are exported!)

It does not complain – required plugins not found as they are found –
eclipse compiler simply does not see the classes…

But studio uses eclipse API and this API is provided by plugins located
in eclipse/plugins

Why classes only from our plugins are not visible by eclipse java compiler?

I have compared manifests from eclipse API plugins and e.g. our
manifests - the only difference is that in their manifests all classes
are signed:

Example:

Name: org/eclipse/jem/internal/beaninfo/ui/BeaninfoEntrySearchpath Dial
og$4.class
SHA1-Digest: jZ6KY96EDYqBrWkVN3exQlyuC+0=

That’s it? That’s the reason?

Thank you very much,
Gennnady
Re: Why JDT does not see my plugins classes? [message #643102 is a reply to message #643073] Sat, 04 December 2010 11:22 Go to previous messageGo to next message
Deepak Azad is currently offline Deepak AzadFriend
Messages: 543
Registered: July 2009
Senior Member
On 12/4/2010 3:46 AM, Gennady Agranov wrote:
> We have three plugins - studio,support and parser
>
> Studio requires both support and parser (they listed as required in
> studio manifest)
>
> If you import all 3 projects into the workspace – everything builds fine
>
> Now export support project to support.jar plugin and/or parser project
> to parser.jar plugin
>
> Drop these plugins into eclipse/plugins and remove projects support and
> parser from workspace
A P2 issue I think. Did you try dropping these plugins into
eclipse/dropins instead? Or did you try the 'Install into host' option
in the Plugin export wizard?

> Studio project will not build now – java compiler does not see classes
> from support.jar and/or parser.jar dropped into eclipse/plugins (though
> the packages are exported!)
>
> It does not complain – required plugins not found as they are found –
> eclipse compiler simply does not see the classes…
>
> But studio uses eclipse API and this API is provided by plugins located
> in eclipse/plugins
>
> Why classes only from our plugins are not visible by eclipse java compiler?
>
> I have compared manifests from eclipse API plugins and e.g. our
> manifests - the only difference is that in their manifests all classes
> are signed:
>
> Example:
>
> Name: org/eclipse/jem/internal/beaninfo/ui/BeaninfoEntrySearchpath Dial
> og$4.class
> SHA1-Digest: jZ6KY96EDYqBrWkVN3exQlyuC+0=
>
> That’s it? That’s the reason?
>
> Thank you very much,
> Gennnady
Re: Why JDT does not see my plugins classes? [message #643418 is a reply to message #643102] Mon, 06 December 2010 19:07 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: agranov.allmail.net

Hi, Deepak!

I tried both options suggested by you and unfortunately they did not
help eclipse java compiler to see classes from plugins.

Thanks for trying to help!

Gennady

On 12/4/2010 6:22 AM, Deepak Azad wrote:
> On 12/4/2010 3:46 AM, Gennady Agranov wrote:
>> We have three plugins - studio,support and parser
>>
>> Studio requires both support and parser (they listed as required in
>> studio manifest)
>>
>> If you import all 3 projects into the workspace – everything builds fine
>>
>> Now export support project to support.jar plugin and/or parser project
>> to parser.jar plugin
>>
>> Drop these plugins into eclipse/plugins and remove projects support and
>> parser from workspace
> A P2 issue I think. Did you try dropping these plugins into
> eclipse/dropins instead? Or did you try the 'Install into host' option
> in the Plugin export wizard?
>
>> Studio project will not build now – java compiler does not see classes
>> from support.jar and/or parser.jar dropped into eclipse/plugins (though
>> the packages are exported!)
>>
>> It does not complain – required plugins not found as they are found –
>> eclipse compiler simply does not see the classes…
>>
>> But studio uses eclipse API and this API is provided by plugins located
>> in eclipse/plugins
>>
>> Why classes only from our plugins are not visible by eclipse java
>> compiler?
>>
>> I have compared manifests from eclipse API plugins and e.g. our
>> manifests - the only difference is that in their manifests all classes
>> are signed:
>>
>> Example:
>>
>> Name: org/eclipse/jem/internal/beaninfo/ui/BeaninfoEntrySearchpath Dial
>> og$4.class
>> SHA1-Digest: jZ6KY96EDYqBrWkVN3exQlyuC+0=
>>
>> That’s it? That’s the reason?
>>
>> Thank you very much,
>> Gennnady
>
Re: Why JDT does not see my plugins classes? [message #643419 is a reply to message #643102] Mon, 06 December 2010 19:08 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: agranov.allmail.net

Hi, Deepak!

I tried both options suggested by you and unfortunately they did not
help eclipse java compiler to see classes from plugins.

Thanks for trying to help!

Gennady

On 12/4/2010 6:22 AM, Deepak Azad wrote:
> On 12/4/2010 3:46 AM, Gennady Agranov wrote:
>> We have three plugins - studio,support and parser
>>
>> Studio requires both support and parser (they listed as required in
>> studio manifest)
>>
>> If you import all 3 projects into the workspace – everything builds fine
>>
>> Now export support project to support.jar plugin and/or parser project
>> to parser.jar plugin
>>
>> Drop these plugins into eclipse/plugins and remove projects support and
>> parser from workspace
> A P2 issue I think. Did you try dropping these plugins into
> eclipse/dropins instead? Or did you try the 'Install into host' option
> in the Plugin export wizard?
>
>> Studio project will not build now – java compiler does not see classes
>> from support.jar and/or parser.jar dropped into eclipse/plugins (though
>> the packages are exported!)
>>
>> It does not complain – required plugins not found as they are found –
>> eclipse compiler simply does not see the classes…
>>
>> But studio uses eclipse API and this API is provided by plugins located
>> in eclipse/plugins
>>
>> Why classes only from our plugins are not visible by eclipse java
>> compiler?
>>
>> I have compared manifests from eclipse API plugins and e.g. our
>> manifests - the only difference is that in their manifests all classes
>> are signed:
>>
>> Example:
>>
>> Name: org/eclipse/jem/internal/beaninfo/ui/BeaninfoEntrySearchpath Dial
>> og$4.class
>> SHA1-Digest: jZ6KY96EDYqBrWkVN3exQlyuC+0=
>>
>> That’s it? That’s the reason?
>>
>> Thank you very much,
>> Gennnady
>
Re: Why JDT does not see my plugins classes? [message #643431 is a reply to message #643073] Mon, 06 December 2010 20:08 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

As Deepak mentioned, you can no longer simply put plugins in the
eclipse/plugins directory.

If you don't need these 2 plugins in your running development
environment, just your build env, you can create a target platform using
Preferences>Plug-in Development>Target Platform. Base your target
platform on your install. Then deploy the 2 plugins that you care about
using File>Export...>Deployable Plug-ins and Fragments. Go back and
edit your target platform to include the 2 plugins.

Other options include deploying the 2 plugins *into* your running
eclipse (which would make the part of the default running platform).
This option can muddy your running eclipse, though.

PW


--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Platform_Expression_Framework
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Previous Topic:Is it possible to have two types with the same name but different (number) of type arguments?
Next Topic:Model Persistance
Goto Forum:
  


Current Time: Fri Apr 19 20:48:22 GMT 2024

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

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

Back to the top