On Saturday 13 May 2006 19:16, Frank wrote: > I have generated a directory under Windows. Copy the > jar file of my program (a.jar) generated by Netbeans > to this directory. Copy the cdk-20050826.jar to this > directory. The command I use is java -cp > cdk-20050826.jar -jar a.jar and the following error > occurs:
And this is the same command you use on linux? Have you tried '-classpath' instead of '-cp' too? > Exception in thread "main" > java.lang.NoClassDefFoundError: > org/openscience/cdk/ChemObject at > a.Main.main(Main.java:46) > > Any ideas? Thanks a lot. Seems a CLASSPATH problem... You could also try 'set CLASSPATH=' instead... see: http://java.sun.com/j2se/1.3/docs/tooldocs/win32/classpath.html Egon -- [EMAIL PROTECTED] Cologne University Bioinformatics Center (CUBIC) Blog: http://chem-bla-ics.blogspot.com/ GPG: 1024D/D6336BA6 _______________________________________________ Cdk-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/cdk-user

