ECLIPSE Questions and Answers

Explain how can you add a library to the classpath of a plug-in?

To access particular library from a plugin, the library needs to be added to the classpath of a plug-in.  There are four ways of doing this.

  • The JAR can be added to the boot classpath
  • The JAR can be added to the declared libraries for a plug-in
  • Create a new plug-in that can be added to the library
  • By using OSGI parent loader