From: SourceForge.net <no...@so...> - 2004-12-13 11:51:40
|
Bugs item #1080280, was opened at 2004-12-06 23:07 Message generated for change (Comment added) made by egonw You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=120024&aid=1080280&group_id=20024 Category: cdk-qsar module Group: None >Status: Closed Resolution: Works For Me Priority: 5 Submitted By: Rajarshi Guha (rajarshi) Assigned to: Egon Willighagen (egonw) Summary: DescriptorEngine constructor fails Initial Comment: When trying to instantiate the DescriptorEngine class it crashes with the error: Exception in thread "main" java.lang.NoClassDefFoundError: junit/framework/AssertionFailedError at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:2328) at java.lang.Class.getConstructor0(Class.java:2640) at java.lang.Class.newInstance0(Class.java:321) at java.lang.Class.newInstance(Class.java:303) at org.openscience.cdk.qsar.DescriptorEngine.<init>(DescriptorEngine.java:75) at test.main(test.java:7) A test program that reproduces this error is given below: import org.openscience.cdk.qsar.DescriptorEngine; public class test { public static void main(String[] args) { DescriptorEngine de = new DescriptorEngine(); } } ---------------------------------------------------------------------- >Comment By: Egon Willighagen (egonw) Date: 2004-12-13 12:51 Message: Logged In: YES user_id=25678 ---------------------------------------------------------------------- Comment By: Rajarshi Guha (rajarshi) Date: 2004-12-07 13:30 Message: Logged In: YES user_id=349408 Yes, you're right. It seems I did'nt have junit.jar in my CLASSPATH. As a developer this is fine - but is there a reason for the dependency on junit when it is not a test? ---------------------------------------------------------------------- Comment By: Egon Willighagen (egonw) Date: 2004-12-06 23:34 Message: Logged In: YES user_id=25678 Hi Rajarshi, I'm not sure what the problem is that you have, but the constructor seems fine; I've added a JUnit test for it. And running the above code works fine too. I'm puzzeled why it actually fails to find a class definition for a JUnit framework class... that's not really used... Does the cdk.applications.DescriptorCalculator run on your environment? What are the details of your environment? 'ant info' ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=120024&aid=1080280&group_id=20024 |