Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Add LogWatcher plug-in to my RCP app?(Add LogWatcher plug-in to my RCP app?)
Add LogWatcher plug-in to my RCP app? [message #497000] Thu, 12 November 2009 08:09 Go to next message
moley harey is currently offline moley hareyFriend
Messages: 23
Registered: July 2009
Junior Member
Hi folks,

I have been taking a look at LogWatcher RCP plugin (http://graysky.sourceforge.net/) for displaying local log files and seems to be a quite good solution.

I have done one test adding that plug-in to my Eclipse IDE, for that I just had to unzip the plugin in my $ECLIPSE_HOME/plugins folder and after that the LogWatcher View was appearing in the "Window/Show View/Other" menu.

Now I would like to add the plugin to one RCP application I had done myself so in the plugin.xml and product files I have added the dependency to include LogWatcher.

If I run my app using plugin.xml (launched from Eclipse IDE) it works fine and I can see LogWatcher View but once I generate my product executable the View cannot be loaded as it says it cannot find LogWatcher classes.

How can I add this plugin and any other one to my executable app? Apart from adding it to my product "Configuration" tab do I have to place somewhere else the jar file of the plug-in?

Thanks in advance,

Mh
Re: Add LogWatcher plug-in to my RCP app? [message #497147 is a reply to message #497000] Thu, 12 November 2009 16:25 Go to previous messageGo to next message
Wim Jongman is currently offline Wim JongmanFriend
Messages: 423
Registered: July 2009
Senior Member
Hi Moley,

It can be that the logwatcher itself also depends on plugins that you did not
include. You have to add them to the dependencies (not to the configuration,
at least not to enable it for packaging).

If all fails, run you application with -console, enter "ss", find the number
of the logwatcher plugin and enter "diag nnnn".

Best regards,

Wim Jongman

--

Salvo, the Eclipse based newsreader could use signatures


> Hi folks,
>
> I have been taking a look at LogWatcher RCP plugin
(http://graysky.sourceforge.net/) for displaying local log files and seems to
be a quite good solution.
>
> I have done one test adding that plug-in to my Eclipse IDE, for that I just
had to unzip the plugin in my $ECLIPSE_HOME/plugins folder and after that the
LogWatcher View was appearing in the "Window/Show View/Other" menu.
>
> Now I would like to add the plugin to one RCP application I had done myself
so in the plugin.xml and product files I have added the dependency to include
LogWatcher.
>
> If I run my app using plugin.xml (launched from Eclipse IDE) it works fine
and I can see LogWatcher View but once I generate my product executable the
View cannot be loaded as it says it cannot find LogWatcher classes.
>
> How can I add this plugin and any other one to my executable app? Apart
from adding it to my product "Configuration" tab do I have to place somewhere
else the jar file of the plug-in?
>
> Thanks in advance,
>
> Mh
Re: Add LogWatcher plug-in to my RCP app? [message #497153 is a reply to message #497147] Thu, 12 November 2009 17:23 Go to previous messageGo to next message
moley harey is currently offline moley hareyFriend
Messages: 23
Registered: July 2009
Junior Member
Hi Wim,

Thanks a lot for your response, I have checked all necessary dependencies and everything seems to be OK. This is what I am getting now:

- If I launch my RCP app using "Launch and Eclipse Application" option in the Overview tab of my plugin.xml it works fine, the LogWatch plugin is loaded correctly.

- If I launch my RCP app using "Launch and Eclipse Application" option in the Overview tab of my app.product file it works fine too.

- Just when I launch my RCP app from the executable version I have generated using the "Export Product Wizard" option is when the LogWatcher plugin is not launched and the "Class not found" errors appear.

I think is just a matter of placing LogWatcher jar file somewhere else but I do not know how to fix that! Sad
Re: Add LogWatcher plug-in to my RCP app? [message #497492 is a reply to message #497147] Fri, 13 November 2009 07:49 Go to previous messageGo to next message
moley harey is currently offline moley hareyFriend
Messages: 23
Registered: July 2009
Junior Member
Hi again Wim,

I have run my executable using the console as you suggested me and these are the results:

1. I have launched my executable using the "-console" option.
2. In the osgi console I have run the "ss" command to check LogWatcher plugin number and this is the result:

16 <<LAZY>> org.graysky.eclipse.logwatcher_1.4.0.1

What does "LAZY" mean? Does it means the plugin is not activated?I have seen that there are several plugins which are LAZY and other are RESOLVED?¿¿??¿

3. Using the ID=16 I have run the command:

osgi> diag 16
reference:file:plugins/org.graysky.eclipse.logwatcher_1.4.0. 1 [16]
No unresolved constraints.

Does it means the plugin is correctly installed?
Why is not working properly?
Re: Re: Add LogWatcher plug-in to my RCP app? [message #497908 is a reply to message #497492] Fri, 13 November 2009 14:42 Go to previous message
Wim Jongman is currently offline Wim JongmanFriend
Messages: 423
Registered: July 2009
Senior Member
Alright, so this indicates that the plugin is exported and available.
<<LAZY>> means that is is there but no one requested for it yet. Can you do
the same <diag> for the plugin that requires the graysky plugin to see what
that gives you.


> Hi again Wim,
>
> I have run my executable using the console as you suggested me and these
are the results:
>
> 1. I have launched my executable using the "-console" option.
> 2. In the osgi console I have run the "ss" command to check LogWatcher
plugin number and this is the result:
>
> 16 <<LAZY>> org.graysky.eclipse.logwatcher_1.4.0.1
>
> What does "LAZY" mean? Does it means the plugin is not activated?I have
seen that there are several plugins which are LAZY and other are
RESOLVED?¿¿??¿
>
> 3. Using the ID=16 I have run the command:
>
> osgi> diag 16
> reference:file:plugins/org.graysky.eclipse.logwatcher_1.4.0. 1 [16]
> No unresolved constraints.
>
> Does it means the plugin is correctly installed?
> Why is not working properly?
Previous Topic:Custom Splash window HELP!
Next Topic:Extensions tab incomplete
Goto Forum:
  


Current Time: Thu Apr 18 05:54:28 GMT 2024

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

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

Back to the top