How can I calculate molecular descriptors using different versions of the CDK library??
nina
[ Editor ]
from София, България
Normally, by setting the Java CLASSPATH to the relevant CDK jar.
Could you please be more specific with your question – do you need to substitute different CDK versions during compile time or run time?
Nina’s suggestions apply to compile time substitution.
If you want to achieve run time substitution then you need to be more clever than that. The fact is that you can’t have different versions of the same class (as identified by its fully qualified name) inside the same JVM instance. You could either (1) start multiple JVM instances and load different CDK versions into every one of them or (2) change the class names by inserting some version information into them (eg. have classes org.openscience.cdk.ver133.qsar.SomeDescriptor and org.openscience.cdk.ver149.qsar.SomeDescriptor in parallel).