import - Programmatically adding a library to an Eclipse project -
how can create new build path entry *.jar file , add classpath entry build path of eclipse project.
i have plugin should automatically setup target project. project needs have library imports , want add imports automatically using wizard. user selects location of sdk , libraries have linked target project.
however, found references:
importing libraries in eclipse programmatically
how add folder java build path library, having multiple jars or entries in it?
unfortunately, failed implement second solution cannot find classes iclasspathcontainer, javacore , ijavaproject.
i'm using eclipse helios , jdk. need additional libraries make changes build path or there simpler solution import jar library programmatically?
regards, florian
i'm assuming creating plugin , need plugin manage jars added classpath.
as mention, need create custom classpath container. first, create classpath container extension exending extension point:
org.eclipse.jdt.core.classpathcontainerinitializer
then, create class implements org.eclipse.jdt.core.iclasspathcontainer , associate extension point created.
you mention cannot find org.eclipse.jdt.core.iclasspathcontainer interface. need make sure plugin references org.eclipse.jdt.core plugin in manifest.mf.
Comments
Post a Comment