- This topic has 6 replies, 3 voices, and was last updated 9 years, 1 month ago by .
Viewing 1 post (of 1 total)
Viewing 1 post (of 1 total)
- You must be logged in to reply to this topic.
Hi,
I met anouther issue regarding using SuanShu library. I’m going to use SS in my application based on NetBeans platform v 6.9.1 (http://netbeans.org/features/platform/). When I tried to do that I found that NetBeans proxy class loader doesn’t load class from the default packages (http://kickjava.com/src/org/netbeans/ProxyClassLoader.java.htm see loadClass method).
When I try to execute something like
1 2 3 4 5 |
<br /> .....<br /> ShapiroWilk sw = new ShapiroWilk(myData);<br /> .....<br /> |
inside my NetBeans application I get next exception:
1 2 3 4 5 6 7 8 9 10 11 |
<br /> Caused by: java.lang.NoClassDefFoundError: w<br /> at com.numericalmethod.suanshu.analysis.function.rn2r1.UnivariateRealFunction.(tg:229)<br /> at com.numericalmethod.suanshu.stats.distribut-> ion.univariate.NormalDistribution.(mn:298)<br /> at com.numericalmethod.suanshu.stats.test.distribution.normality.ShapiroWilk.(og:253)<br /> .....<br /> Caused by: java.lang.ClassNotFoundException: Will not load classes from default package (w)<br /> at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:199)<br /> at java.lang.ClassLoader.loadClass(ClassLoader.java:247)<br /> .....<br /> |
It happens when SS tries to load class w but this class is in default package of SuanShu.
Could you remove class w from default package and put it to some xxx.utils or something like that ? We are planning to use this library in our application and it makes a big problem.
I’m not sure that is bug but definitely it will not work in NB based applications.
–dima
Copyright 2019 © All rights Reserved |CQA