我已经阅读了这个帖子,正如它所说,public static void main(java.lang.String[] args)
我的主要功能是这样的:
public static void main(String[] args) throws FileNotFoundException, IOException, TrieException, TSException {
CSVReader reader=new CSVReader(new FileReader(".//Data//test1.csv"));
String[] nextline;
int linenumber=0;
double[] numbers=new double[10];
double[] times=new double[10];
for(int i=0;i<=7;i++)
{
nextline = reader.readNext();
numbers[i]= Double.parseDouble(nextline[0]);
times[i]=i;
}
DiscordsAndMotifs dr= edu.hawaii.jmotif.sax.SAXFactory.series2DiscordsAndMotifs(numbers, 4, 2, 2, 2,null);// If I comment this line of code, my programm works without any error
}
如果我运行我的程序,我会收到以下错误:
Exception in thread "main" java.lang.NoSuchMethodError: org.hackystat.utilities.logger.HackystatLogger.getLogger(Ljava/lang/String;Ljava/lang/String;) Ljava/util/logging/Logger;
at edu.hawaii.jmotif.sax.SAXFactory.<clinit>(SAXFactory.java:51)
at motif.discovery.MotifDiscovery.main(MotifDiscovery.java:35)`
我的项目中有必需的库。这个错误的原因是什么?你能帮我解决这个问题吗?