[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[News.eclipse.foundation] Re: How to use the External Jars In plugin project

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.