|
Hi, It's been a LONG time since I've played around with the CDK, so this may have an obvious answer... I'm working with cdk-1.0.1.jar (although I tried the same with the latest nightly build too) and I occasionally get these errors regarding either exception classes not being found or, if I get rid of these exceptions in the code, classes of the CDK not being found. The code I'm trying out is basically Rajarshi Guha's smi2sdf.java and I tried both the original version from his website and a slightly changed version to avoid the warnings being generated as some of the classes have changed in the later CDK versions. Attached is the "changed" version of this file. I compile with: javac -classpath ./cdk-1.0.1.jar smi2sdf.java and run with: java -cp . smi2sdf "CCC=C=CO" The error I get when I comment out catching of the IvalidSmilesException exception (line 75) : //catch (InvalidSmilesException ise) { // System.out.println(ise.toString()); is: Exception in thread "main" java.lang.NoClassDefFoundError: org/openscience/cdk/interfaces/IChemObjectBuilder and if I don't comment it out, I get: Exception in thread "main" java.lang.NoClassDefFoundError: org/openscience/cdk/exception/InvalidSmilesException (I tried to add the /exception.* and /interfaces.* classes with import but it makes no difference). So clearly some classes cannot be found. However they are in the .jar file (checking with jar -tvf and grepping for the name of the class) so I don't understand what is wrong...The problem with the exception classes I think persists with all other types of CDK exceptions too. Any ideas??? Regards, Irilenia |
smi2sdf.java
Description: Binary data
------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________ Cdk-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/cdk-user

