title: How to open a Lucene 4.3 index?
body: <p>I am a Lucene newbie and I am trying to open a Lucene 4.3 index (which I am creating with my simple Lucene 4.3.1 app) using Luke, but it keeps giving me:</p>
  
  <blockquote>
    <p>Invalid directory at the location, check console for more information.
    Last exception: java.lang.IllegalArgumentException: A SPI class of
    type org.apache.lucene.codecs.Codec with name 'Lucene42' does not
    exist. You need to add the corresponding JAR file supporting this SPI
    to your classpath.The current classpath supports the following names:
    [Lucene40, Lucene3x, SimpleText, Appending]</p>
  </blockquote>
  
  <p>Fine. So I set the Lucene version used in the code to <code>Version.LUCENE_43</code>. I tried earlier 3.x versions as well. What am I doing wrong here? Is there another Lucene index browser one can use?</p>
  
  <p>I am running Luke using <code>java -jar lukeall-4.0.0-ALPHA.jar</code> and I am telling it to open the index which my app is producing.</p>
  
  <p><strong>UPDATE:</strong></p>
  
  <ul>
  <li><p>I have tried setting my CLASSPATH to include lucene-core:4.3.1:jar. That didn't help.</p></li>
  <li><p>Luke throws this error:</p>
  
  <p>java.lang.IllegalArgumentException: A SPI class of type org.apache.lucene.codecs.Codec with name 'Lucene42' does not exist. You need to add the corresponding JAR file supporting this SPI to your classpath.The current classpath supports the following names: [Lucene40, Lucene3x, SimpleText, Appending]
  java.lang.IllegalArgumentException: A SPI class of type org.apache.lucene.codecs.Codec with name 'Lucene42' does not exist. You need to add the corresponding JAR file supporting this SPI to your classpath.The current classpath supports the following names: [Lucene40, Lucene3x, SimpleText, Appending]</p></li>
  </ul>
  
  <p>Many thanks!</p>