I am trying to use JWNL. I am getting an error in line 4 which says "int cannot be dereferenced". Below is the code:
1 try{
2 JWNL.initialize(new FileInputStream("D:\\jwnl14-rc2\\jwnl14-rc2\\config\\file_properties.xml"));
3 Dictionary wordnet = Dictionary.getInstance();
4 IndexWord word= wordnet.getIndexWord(POS.VERB,"run");
5 Synset[] senses = word.getSenses();
6 for (int i = 0; i < senses.length; i++) {
7 System.out.println(word + ": " + senses[i].getGloss());
8 }
9 } catch(Exception ex){ System.out.println("Error during the initialization"+ ex.getMessage());}
Please advice me to solve the above errors.