Importing an external package into existing Eclipse plugin [message #319311] |
Thu, 16 August 2007 18:59  |
Eclipse User |
|
|
|
Originally posted by: suvi.corelis.com
I am trying to have an existing Eclipse plugin import my custom Java
package and instantiate an object of the imported type. But it appears
this is not as straight forward as if one were to do the same using two
standard java packages--my custom/imported class are not being found at
run time. I have also experimented by creating a simple program and a
simple class, the standard import keyword worked fine.
Would I be right to say that if I want the eclipse plugin to be able to
import a small simple class from an external package, I would have to
write a custom plugin/bundle and utilize extension points?
Any info is appreciated. Thank you!
Suvi
|
|
|
|
Re: Importing an external package into existing Eclipse plugin [message #319377 is a reply to message #319320] |
Fri, 17 August 2007 21:03  |
Eclipse User |
|
|
|
Originally posted by: suvi.corelis.com
Rem,
Thanks for the info. I was able to get it working based on "Option 2:
include the jars in a plug-in" from the link you gave me. However, this
only worked in debug mode. When I exported the modified plugin and
dropped it into the plugins directory of eclipse, it seems like it can't
find the inlcuded jar. I extracted the jar of the plugin and the
imported jar is there in the base directory.
Would you or anyone happen to know what's causing it to fail in the
non-debug mode?
Thank you,
Suvi
Remy Chi Jian Suen wrote:
> If you have a separate JAR file, you probably want to look at this.
> http://wiki.eclipse.org/PDE
>
> Regards,
> Rem
|
|
|
Powered by
FUDForum. Page generated in 0.05961 seconds