Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Importing an external package into existing Eclipse plugin
Importing an external package into existing Eclipse plugin [message #319311] Thu, 16 August 2007 18:59 Go to next message
Eclipse UserFriend
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 #319320 is a reply to message #319311] Thu, 16 August 2007 21:17 Go to previous messageGo to next message
Eclipse UserFriend
If you have a separate JAR file, you probably want to look at this.
http://wiki.eclipse.org/PDE

Regards,
Rem
Re: Importing an external package into existing Eclipse plugin [message #319377 is a reply to message #319320] Fri, 17 August 2007 21:03 Go to previous message
Eclipse UserFriend
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
Previous Topic:Debug View lost selection on stepping
Next Topic:[Update Manager]Uninstall problems
Goto Forum:
  


Current Time: Sat Jul 19 18:05:15 EDT 2025

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

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

Back to the top