title: RetrievalException in wordnet code
body: <p>I executed this code:</p>
  
  <pre><code>package edu.smu.tspell.wordnet;
  
  import java.util.Scanner;
  
  public class TestJAWS
  {
  
      /**
       * Main entry point. The command-line arguments are concatenated together
       * (separated by spaces) and used as the word form to look up.
       */
      public static void main(String[] args)
      {
          Scanner scan = new Scanner(System.in);
  
          args =  new String[] {"airplane"};
          if (args.length &gt; 0)
          {
              //  Concatenate the command-line arguments
              StringBuffer buffer = new StringBuffer();
              for (int i = 0; i &lt; args.length; i++)
              {
                  buffer.append((i &gt; 0 ? " " : "") + args[i]);
              }
              String wordForm = buffer.toString();
              //  Get the synsets containing the wrod form
              WordNetDatabase database = WordNetDatabase.getFileInstance();
              Synset[] synsets = database.getSynsets(wordForm);
              //  Display the word forms and definitions for synsets retrieved
              if (synsets.length &gt; 0)
              {
                  System.out.println("The following synsets contain '" +
                          wordForm + "' or a possible base form " +
                          "of that text:");
                  for (int i = 0; i &lt; synsets.length; i++)
                  {
                      System.out.println("");
                      String[] wordForms = synsets[i].getWordForms();
                      for (int j = 0; j &lt; wordForms.length; j++)
                      {
                          System.out.print((j &gt; 0 ? ", " : "") +
                                  wordForms[j]);
                      }
                      System.out.println(": " + synsets[i].getDefinition());
                  }
              }
              else
              {
                  System.err.println("No synsets exist that contain " +
                          "the word form '" + wordForm + "'");
              }
          }
          else
          {
              System.err.println("You must specify " +
                      "a word form for which to retrieve synsets.");
          }
      }
  
  }
  </code></pre>
  
  <p>but I'm getting this error:</p>
  
  <pre><code>Exception in thread "main" edu.smu.tspell.wordnet.impl.file.RetrievalException: Error opening index file: .\C:\Users\piyush_p\Desktop\workspace\Wordnet\src\WordNet-3.0\dict\index.sense (The filename, directory name, or volume label syntax is incorrect)
      at edu.smu.tspell.wordnet.impl.file.SenseIndexReader.getInstance(SenseIndexReader.java:88)
      at edu.smu.tspell.wordnet.impl.file.WordFormLookup.loadSynsets(WordFormLookup.java:273)
      at edu.smu.tspell.wordnet.impl.file.WordFormLookup.getSynsets(WordFormLookup.java:230)
      at edu.smu.tspell.wordnet.impl.file.WordFormLookup.getSynsets(WordFormLookup.java:172)
      at edu.smu.tspell.wordnet.impl.file.FileDatabase.getSynsets(FileDatabase.java:87)
      at edu.smu.tspell.wordnet.WordNetDatabase.getSynsets(WordNetDatabase.java:61)
      at edu.smu.tspell.wordnet.TestJAWS.main(TestJAWS.java:28)
  Caused by: java.io.FileNotFoundException: .\C:\Users\piyush_p\Desktop\workspace\Wordnet\src\WordNet-3.0\dict\index.sense (The filename, directory name, or volume label syntax is incorrect)
      at java.io.RandomAccessFile.open(Native Method)
      at java.io.RandomAccessFile.&lt;init&gt;(Unknown Source)
      at edu.smu.tspell.wordnet.impl.RandomAccessReader.&lt;init&gt;(RandomAccessReader.java:75)
      at edu.smu.tspell.wordnet.impl.LineLocator.&lt;init&gt;(LineLocator.java:54)
      at edu.smu.tspell.wordnet.impl.MultipleLineLocator.&lt;init&gt;(MultipleLineLocator.java:48)
      at edu.smu.tspell.wordnet.impl.file.SenseIndexReader.&lt;init&gt;(SenseIndexReader.java:102)
      at edu.smu.tspell.wordnet.impl.file.SenseIndexReader.getInstance(SenseIndexReader.java:83)
      ... 6 more`enter code here`
  </code></pre>