title: Failed to created JLineReader (Scala REPL)
body: <p>When I start the REPL on Windows 7 64-bit (it works ok on my Windows XP laptop) I get the following message:</p>
  
  <pre><code>Failed to created JLineReader: java.lang.NoClassDefFoundError: Could not initial
  ize class org.fusesource.jansi.internal.Kernel32
  Falling back to SimpleReader.
  </code></pre>
  
  <p>This means history and code completion don't work.</p>
  
  <p>I have googled the problem but I can't find any resolution. I don't have sbt or Maven or ivy installed so I don't think it's anything to do with those. My %SCALA_HOME% is set up correctly.</p>
  
  <p>There is something about a dependency on Scala 2.8 in this thread: <a href="http://www.scala-lang.org/node/9855" rel="noreferrer">http://www.scala-lang.org/node/9855</a>, but I don't understand how to resolve this on my system.</p>
  
  <p>As per suggestions in this thread: <a href="http://www.scala-lang.org/node/9795" rel="noreferrer">http://www.scala-lang.org/node/9795</a> I have updated my MS C++ libraries, but still have the problem. I ran the code suggested in post #11 and get the following:</p>
  
  <pre><code>scala&gt; println(System.getProperty("java.library.path"))
  
  C:\Program Files\Java\jre6\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\
  Windows;C:\Program Files\Common Files\Microsoft Shared\Windows Live;c:\Program F
  iles (x86)\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Win
  dows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files
  (x86)\QuickTime\QTSystem\;C:\Program Files (x86)\ZipGenius 6\;C:\Program Files (
  x86)\Java\jdk1.6.0_22\bin;C:\Program Files\SlikSvn\bin\;C:\Program Files\apache-
  ant-1.8.2\bin;C:\Program Files\TortoiseSVN\bin;C:\cygwin\bin;C:\Program Files (x
  86)\Notepad++;C:\Program Files (x86)\groovy-1.7.10\bin;C:\Program Files\scala2.9
  \bin
  
  scala&gt; println(org.fusesource.jansi.internal.WindowsSupport.getConsoleMode)
  
  java.lang.NoClassDefFoundError: Could not initialize class org.fusesource.jansi.
  internal.Kernel32
          at org.fusesource.jansi.internal.WindowsSupport.getConsoleMode(WindowsSu
  pport.java:48)
          at .&lt;init&gt;(&lt;console&gt;:8)
          at .&lt;clinit&gt;(&lt;console&gt;)
          at .&lt;init&gt;(&lt;console&gt;:11)
          at .&lt;clinit&gt;(&lt;console&gt;)
          at $export(&lt;console&gt;)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          at java.lang.reflect.Method.invoke(Unknown Source)
          at scala.tools.nsc.interpreter.IMain$ReadEvalPrint.call(IMain.scala:592)
  
          at scala.tools.nsc.interpreter.IMain$Request$$anonfun$10.apply(IMain.sca
  la:828)
          at scala.tools.nsc.interpreter.Line$$anonfun$1.apply$mcV$sp(Line.scala:4
  3)
          at scala.tools.nsc.io.package$$anon$2.run(package.scala:31)
          at java.lang.Thread.run(Unknown Source)
  </code></pre>
  
  <p>Any help in getting this to work appreciated!</p>