classes appearing twice in my plugin [message #328377] |
Fri, 23 May 2008 10:45  |
Eclipse User |
|
|
|
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 #328387 is a reply to message #328381] |
Fri, 23 May 2008 12:24   |
Eclipse User |
|
|
|
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 #328398 is a reply to message #328397] |
Fri, 23 May 2008 16:47  |
Eclipse User |
|
|
|
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)
|
|
|
Powered by
FUDForum. Page generated in 0.03835 seconds