Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » General (non-technical) » Eclipse Foundation » How to use the External Jars In plugin project
How to use the External Jars In plugin project [message #43064] Fri, 15 December 2006 11:23 Go to next message
Eclipse UserFriend
Originally posted by: wu_yiping.21cn.com

Hi all,

I built a Plug-in project. In the project, I uses a external jar, I configs
the java build path by "Add External Jars...",
then build it, I got no error.

But Where I run/debug it in the IDE, it report can't load class from the
jar. Then I built a test java project used the same jar, but all OK

how can i do? Please give some advice.

Thanks a lot.
Re: How to use the External Jars In plugin project [message #43095 is a reply to message #43064] Fri, 15 December 2006 14:39 Go to previous message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Lincoln,

Please use the newcomers or platform newsgroup for technical questions.
This newsgroup is for questions about the operations of the Eclipse
foundation itself.

When developing plugins, you should never modify the classpath directly
the way you have done. You should always edit the MANIFEST.MF to add
dependencies on other plugins. Modifying the classpath directly will
fix your build problems but then exactly the same issue will surface
later as a runtime problem. If you need external jars, you must put
them into some plugin and make it part of the runtime for that plugin
(again by editing the MANIFEST.MF's runtime).


Lincoln wrote:
> Hi all,
>
> I built a Plug-in project. In the project, I uses a external jar, I configs
> the java build path by "Add External Jars...",
> then build it, I got no error.
>
> But Where I run/debug it in the IDE, it report can't load class from the
> jar. Then I built a test java project used the same jar, but all OK
>
> how can i do? Please give some advice.
>
> Thanks a lot.
>
>
>
>
>
>
>
>
Previous Topic:Samples
Next Topic:Problem while using eclipse3.2
Goto Forum:
  


Current Time: Thu Apr 25 04:58:06 GMT 2024

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

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

Back to the top