Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » problem running one plugin that depends upon another plugin
problem running one plugin that depends upon another plugin [message #47357] Tue, 03 June 2003 10:21 Go to next message
Eclipse UserFriend
I'm new to programming plugins for eclipse and am trying to
write a simple set of two plugins and have one be dependent upon
the other.

I created the first plugin as a wrapper around the log4j.jar file
we use. I exported the entire jar and named the plugin org.apache.log4j.

I created another plugin that uses classes in the log4j.jar file - right
now just initializing the log4j system. I added org.apache.log4j to
the dependency list for my second plugin and updated the build
classpath.

The source builds fine, but when I try to run the plugin, I get an
exception stating that a method could not be found (one of the
methods of the logger class I'm initializing) and the view does
not get created.

Can anyone give me any ideas about what I'm doing wrong? I'm assuming
that it's finding the jar file since it didn't give me a class not
found error. Are there other steps I need to take or other properties
I need to set for this to work?

Thanks in advance for any help.

Bridget Slocum
Re: problem running one plugin that depends upon another plugin [message #47510 is a reply to message #47357] Tue, 03 June 2003 11:58 Go to previous message
Eclipse UserFriend
I discovered the problem through much trial and error. My parent plugin
used a jar file that invoked the log4j methods. One of those methods
was a deprecated api. When I invoked that method directly in a plugin
source file, it gave me the deprecation warning and didn't allow the
plug-in to be built. When I removed that method invocation from my
plug-in source, everything built and ran as I expected in the runtime
workbench.

Bridget Slocum

Bridget Slocum wrote:
> I'm new to programming plugins for eclipse and am trying to
> write a simple set of two plugins and have one be dependent upon
> the other.
>
> I created the first plugin as a wrapper around the log4j.jar file
> we use. I exported the entire jar and named the plugin org.apache.log4j.
>
> I created another plugin that uses classes in the log4j.jar file - right
> now just initializing the log4j system. I added org.apache.log4j to
> the dependency list for my second plugin and updated the build
> classpath.
>
> The source builds fine, but when I try to run the plugin, I get an
> exception stating that a method could not be found (one of the
> methods of the logger class I'm initializing) and the view does
> not get created.
>
> Can anyone give me any ideas about what I'm doing wrong? I'm assuming
> that it's finding the jar file since it didn't give me a class not
> found error. Are there other steps I need to take or other properties
> I need to set for this to work?
>
> Thanks in advance for any help.
>
> Bridget Slocum
>
Previous Topic:Newbie question
Next Topic:maximize/restore editor window via keyboard
Goto Forum:
  


Current Time: Sat May 10 11:21:27 EDT 2025

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

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

Back to the top