Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » importing packages
importing packages [message #131618] Thu, 21 May 2009 18:58 Go to next message
andrea is currently offline andreaFriend
Messages: 16
Registered: July 2009
Junior Member
Hi,

I'm trying to import a package "pack.one" declared as exportable -that is
obtaining Export-Package: pack.one in Manifest.-

Well, if I import this package into a new bundle, I can see every class
contained in pack.one but it doesn't work when I run bundle.

I suppose it's a matter of localization of file .class; importing pack.one
doesn't require any information about localization of file .class which
can be found in a separate (bin) directory while source file (resolved
correctly when I write code) resides in src directory.

I hope this question is not much mess...

How can I fix this problem?

Thanks

Andrea
Re: importing packages [message #131629 is a reply to message #131618] Fri, 22 May 2009 12:28 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

In standard eclipse plugins, all of the .java files and resources
related to i18n are in the <proj>/src directory, and eclipse copies the
resources to the <proj>/bin directory when it compiles the .java files.

Are you saying you can't launch your app from within eclipse, or you
cannot deploy and run your bundle in an existing app?

PW

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


Re: importing packages [message #131652 is a reply to message #131629] Fri, 22 May 2009 15:54 Go to previous messageGo to next message
andrea is currently offline andreaFriend
Messages: 16
Registered: July 2009
Junior Member
Thx for your message.

> In standard eclipse plugins, all of the .java files and resources
> related to i18n are in the <proj>/src directory, and eclipse copies the
> resources to the <proj>/bin directory when it compiles the .java files.

Yes, that's what occurs in my case too.

> Are you saying you can't launch your app from within eclipse, or you
> cannot deploy and run your bundle in an existing app?

What I'm trying to say is that when I launch a plugin PLG in a OSGI way,
PLG will work well, (for instance writing a sentence contained in start
method) but the same PLG will not if I import a package pack.x.
I want underline that only when pack.x is installed I can write code using
pack.x's classes. This is the reason that make me suspect a kind of
"splitted" behaviour: code works fine while launching plugin does not.

Thx again
Andrea





> PW
Re: importing packages [message #131671 is a reply to message #131652] Sun, 24 May 2009 11:00 Go to previous messageGo to next message
Dann Martens is currently offline Dann MartensFriend
Messages: 65
Registered: July 2009
Member
Hi Andrea,

Your description is a bit cryptic, but I assume you're trying to explain
that you're having a problem with one particular OSGi bundle, that you
don't have any compile-time issues, but are experiencing run-time issues.

I would help if you could give some additional information:
- are you on 3.4 Ganymede, or any of the 3.5 Galileo milestones?
- are you trying to mix pure OSGi bundles with RCP plug-ins?
- can you create two example projects (bundles, or RCP plugins if that
applies) which reproduce the problem and offer them on-line somewhere?

The first thing I would check out is the state of your problem bundle,
at the OSGi console. Use 'ss' in the Console View, once your application
is run.

Best,
Dann


andrea wrote:
> Thx for your message.
>
>> In standard eclipse plugins, all of the .java files and resources
>> related to i18n are in the <proj>/src directory, and eclipse copies
>> the resources to the <proj>/bin directory when it compiles the .java
>> files.
>
> Yes, that's what occurs in my case too.
>
>> Are you saying you can't launch your app from within eclipse, or you
>> cannot deploy and run your bundle in an existing app?
>
> What I'm trying to say is that when I launch a plugin PLG in a OSGI way,
> PLG will work well, (for instance writing a sentence contained in start
> method) but the same PLG will not if I import a package pack.x.
> I want underline that only when pack.x is installed I can write code
> using pack.x's classes. This is the reason that make me suspect a kind
> of "splitted" behaviour: code works fine while launching plugin does not.
>
> Thx again
> Andrea
>
>
>
>
>
>> PW
>
>
>
Re: importing packages [message #131681 is a reply to message #131671] Sun, 24 May 2009 19:55 Go to previous message
andrea is currently offline andreaFriend
Messages: 16
Registered: July 2009
Junior Member
Ciao Dann,

very kind of you.
I really was not able to understand the reason of failure in executing my
imported plugins, anyway, after many unsuccessful attempts, strongly
suspecting strange kind of bugs, I resetted everything and then I rewrote
my plugings. Something of magic occurred and now everything works fine.

Thx again

andrea
Previous Topic:Enabling update (p2?) in Eclipse applications
Next Topic:[p2] Downgrading Eclipse
Goto Forum:
  


Current Time: Mon Nov 11 08:40:02 GMT 2024

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

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

Back to the top