How to use the External Jars In plugin project [message #43064] |
Fri, 15 December 2006 11:23 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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.
>
>
>
>
>
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03546 seconds