Reputation: 3057
I have read this thread and as it says I must have public static void main(java.lang.String[] args)
my main function is like this:
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
}
If I run my program, I get this 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)`
I have required library in my project. What is the cause of this error? could you please help me to solve this problem?
Upvotes: 1
Views: 531
Reputation: 1
the logging jar required by edu.hawaii.jmotif.sax.SAXFactory.series2DiscordsAndMotifs(numbers, 4, 2, 2, 2,null) is missing, try import apache common logging jar or log4j jar to your project.
Upvotes: 0
Reputation: 1503859
It sounds like the version of hackystat-utilities that you're using is different to the version that jmotif was built against - so the jmotif jar file contains a reference to a method which isn't present at execution time.
I suggest you find out which version of hackystat-utilities the jmotif library requires, and use that.
Upvotes: 5