[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform] Re: Problem while accessing db2 from plugin project

i went through the your first mail again. having a separate plugin to contain the db2 jars (option 3) is the one that I would recommend. Use the "plugin from existing jar archives" option to create the plugin.

Every eclipse plugin would have its own class loader. changing anything in the system classpath would not affect the plugin class loader, rather it would take its class path from the .manifest file "Bundle-ClassPath:" parameter.

Since you mentioned that you have the main plugin which has the db2 plugin as its dependency, the classpath of the main plugin would be the classpath of itself + classpath of the dependent plugin

All said and done, sometimes the plugin classpath would have problems because of the build.properties file.

your db2 plugin build.properties should atleast have something like this

bin.includes = META-INF/,\
              com/,\
              javax/,\

......
......

the com/ is the one you would be interested (DB2 packages would be com.ibm....)

also look into the .log file in the workspace. that would give you a better idea of what the problem is.


-Jeevan