java.lang.NoSuchMethodError while running the program

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?

Jon Skeet
people
quotationmark

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.

people

See more on this question at Stackoverflow