Problems distributing my plugin. [message #45752] |
Fri, 23 May 2003 10:20  |
Eclipse User |
|
|
|
Hi,
I have written a plug-in and tested it using the run-time workbench. Now,
I create a jar file (file/export/jar file) and copy it to a subfolder of
the plugins directory of eclipse (namely "plugins/de.uds.cs.st.dd/"). I
copy my plugin.xml file to that directory and I also copy my icons
subdirectory to the "plugins/.../" dir.
When I now start Eclipse, I do see my icons, but as soon as I select an
icon, instead of performing the action, Eclipse just tells me "The chosen
operation is not currently available". Why?
I had similar problems before, when trying to test my plugin with the
runtime-workbench. Thanks to Daniel Megert, I eventually found out that I
had used the "-dev /bin" command line parameter to run my
runtime-workbench. This had to be changed to "-dev /" to work. In the
process, I checked my plugin.xml file (several times), and I am quite
confident, that everything's okay with it. "de.uds.cs.st.dd" really is the
id specified in the plugin.xml the runtime library is
"de.uds.cs.st.dd/dd.jar" and dd.jar _is_ the name of my jar-file...
So, do you have any ideas what I could have done wrong this time?
Thanks in advance,
Philipp
|
|
|
|
|
|
|
Re: Problems distributing my plugin. [message #47408 is a reply to message #46222] |
Sun, 25 May 2003 08:46  |
Eclipse User |
|
|
|
Hey, now this could be interesting:
Actually, I _can_ install my plug-in using Windows! It's absolutely no
problem: I select "export as jar file", copy the contents to the plugins
directory and after a restart of eclipse, my plug-in is there ---- and
working!
If I try it under linux, I still get the error message ("currently not
available"). The behavior using linux does not change, whether I create
the
jar-file using windows or linux.
This is soooooo strange!
But has anybody experienced similar problems, and could anyone provide me
with a hint, or an idea, or a possible solution, please? I don't know what
else I could try... Funny thing, platform independence ;-))
Philipp
> Hi,
> unfortunately that was not the problem... My MinimizeAction is public and
> it has the 0-arg constructor.
> Anyway, I think I will finish working today and maybe tomorrow I'll find a
> solution...
> Hava a nice weekend,
> Philipp
> > Philipp Bouillon wrote:
> > >These are the logs:
> > >
> > >Error Fri May 23 16:16:49 CEST 2003 Plug-in de.uds.cs.st.dd was unable
to
> > >load class de.uds.cs.st.dd.eclipse.actions.MinimizeAction.
> > >
> > I guess you know this but just to be sure: this action has to be public
> > and there has to be a public 0-arg constructor.
> > Dani
|
|
|
Powered by
FUDForum. Page generated in 0.03519 seconds