Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » classes appearing twice in my plugin
classes appearing twice in my plugin [message #328377] Fri, 23 May 2008 14:45 Go to next message
Eclipse UserFriend
Originally posted by: subs._nospam_consertum.com

Hi,

I have just noticed that all of the classes in my plugins are appearing
twice in the plugin.jar. For example, my com.xyz.plugin.jar contains
bin
|- com
|- xyz
|- plugin
|- Activator.class
com
|- xyz
|- plugin
|- Activator.class

That is, it contains the same .class files in both
bin/com/xyz/plugin/... AND com/xyz/plugin/...

Any ideas why this is happening?

Thanks
--
Derek
Re: classes appearing twice in my plugin [message #328381 is a reply to message #328377] Fri, 23 May 2008 15:18 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Hi,

Could you give a copy of your build.properties?

Derek wrote:
> Hi,
>
> I have just noticed that all of the classes in my plugins are appearing
> twice in the plugin.jar. For example, my com.xyz.plugin.jar contains
> bin
> |- com
> |- xyz
> |- plugin
> |- Activator.class
> com
> |- xyz
> |- plugin
> |- Activator.class
>
> That is, it contains the same .class files in both
> bin/com/xyz/plugin/... AND com/xyz/plugin/...
>
> Any ideas why this is happening?
>
> Thanks

--
Thanks,
Rich Kulp
Re: classes appearing twice in my plugin [message #328387 is a reply to message #328381] Fri, 23 May 2008 16:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: subs._nospam_consertum.com

Here's the contents of my build.properties file:


source.. = src/
output.. = bin/
bin.includes = plugin.xml,\
.,\
plugin.properties,\
icons/,\
META-INF/,\
bin/
src.includes = src/,\
.,\
plugin.xml,\
plugin.properties,\
icons/,\
META-INF/,\
bin/


Rich Kulp wrote:
> Hi,
>
> Could you give a copy of your build.properties?
>
> Derek wrote:
>> Hi,
>>
>> I have just noticed that all of the classes in my plugins are
>> appearing twice in the plugin.jar. For example, my com.xyz.plugin.jar
>> contains
>> bin
>> |- com
>> |- xyz
>> |- plugin
>> |- Activator.class
>> com
>> |- xyz
>> |- plugin
>> |- Activator.class
>>
>> That is, it contains the same .class files in both
>> bin/com/xyz/plugin/... AND com/xyz/plugin/...
>>
>> Any ideas why this is happening?
>>
>> Thanks
>


--
Derek
Re: classes appearing twice in my plugin [message #328389 is a reply to message #328387] Fri, 23 May 2008 16:51 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: kosta.bea.com

Remove the bin/ entry from bin.includes and src.includes.

- Konstantin
Re: classes appearing twice in my plugin [message #328397 is a reply to message #328389] Fri, 23 May 2008 19:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: subs._nospam_consertum.com

Konstantin Komissarchik wrote:
> Remove the bin/ entry from bin.includes and src.includes.
>
> - Konstantin
Hmmm. Now my plugin doesn't work at all. I get class load failures.

I checked the plugin.jar and it has a com directory, but doesn't have a
bin directory. I'm sure I'm missing something here.

Thanks,

--
Derek
Re: classes appearing twice in my plugin [message #328398 is a reply to message #328397] Fri, 23 May 2008 20:47 Go to previous message
Gordon Hirsch is currently offline Gordon HirschFriend
Messages: 100
Registered: July 2009
Senior Member
Derek wrote:
> Konstantin Komissarchik wrote:
>> Remove the bin/ entry from bin.includes and src.includes.
>>
>> - Konstantin
> Hmmm. Now my plugin doesn't work at all. I get class load failures.
>
> I checked the plugin.jar and it has a com directory, but doesn't have a
> bin directory. I'm sure I'm missing something here.

Check your plugin's MANIFEST.MF file. If there is a Bundle-ClassPath
entry, it should include ".". I suspect "bin" might have been added
instead. (If there's no Bundle-ClassPath entry, then that's fine since
"." is the default)
Previous Topic:Binding the attribute of a bean object wrapped in a WritableValue object
Next Topic:FileLink in console with a external file
Goto Forum:
  


Current Time: Sat Dec 21 13:12:51 GMT 2024

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

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

Back to the top