scala - PlayFramework 2.3.1 NoClassDefFoundError: org/fusesource/jansi/AnsiOutputStream -


I am studying Play framework 2.x and I installed the framework with the trigger 1.2.3 on my Fedora Is FC20 Now I am facing a strange error in launching the activator new , which I had never experienced before, with the java-1.7.0-openjdk-1.7.0.65-2.5. 1.2.fc20.i386 and also tried with openjedk 1.8.0, but this error is still here.

  java.lang.NoClassDefFoundError: jline.console.ConsoleReader.setPrompt (ConsoleReader.java on org / fusesource / jansi / AnsiOutputStream jline.console.ConsoleReader.stripAnsi (ConsoleReader.java:479): 398) on jline.console.ConsoleReader.readLine jline.console.ConsoleReader.readLine (ConsoleReader.java:2126) to (ConsoleReader.java:2172) sbt.JLine.sbt $ JLine $$ readLineDirectRaw (LineReader.scala: 45) But on SBT JLine $$ anonfun $ readLineDirect $ 2.Apply (LineReader.scala: 37) sbt.JLine $$ anonfun at $ readLineDirect $ 2.Apply (LineReader.scala: 37): sbt.Signals0.withHandler on SBT (87 Signal.scala at) sbt.JLine.readLineWithHistory (LineReader.scala: 32): sbt.JLine.readLineDirect (37 LineReader.scala) on: .Signals $ .withHandler (13 Signal.scala) sbt.JLine.sbt $ JLine $$ unsynchronizedReadLine at (LineReader.scala: 20) sbt.JLine anonefun $ readLine $ to $$ 1.apply (LineReader.scala: 17) S bt.JLine $$ anonfun $ ReadLine $ 1.Apply (LineReader.scala: 17) sbt on .JLine $$ anonfun $ withJLine $ 1.Apply (LineReader.scala: 118) on sbt.JLine $$ anonfun $ withJLine $ 1.Apply (LineReader.scala: 116) sbt.JLine $ .withTerminal (on LineReader.scala : 17 on the catalyst): 116 at sbt.JLine.readLine (LineReader.scala: sbt.JLine $ .withJLine at 92) (LineReader.scala. Activator.TemplateHandler $ .getTemplateName (TemplateHandler.scala: 81) to: activator.TemplateHandler $ .readLine (16 TemplateHandler.scala) on: ActivatorCliHelper $ class.readLine (19 ActivatorCliHelper.scala) activator.ActivatorCli $ to $$ anonfun $ 1 apply .getTemplateName $ 1 ( ActivatorCli.scala: 55): activator.ActivatorCli $ (applicable to $$ anonfun $ 1.Apply ActivatorCli.scala activator.ActivatorCli $$ $ 1.Apply $ MCI $ SP on anonfun $ (89 ActivatorCli.scala) apply: activator.ActivatorCli $ .withContextClassloader (19 on ActivatorCli.scala): 19) on activator.ActivatorCli $$ anonfun $ applied $ 1.Apply (ActivatorCli.scala activator.ActivatorCli $ .apply 179) to (ActivatorCli.scala: 19) activator.ActivatorLauncher.ru n (ActivatorLauncher.scala: 28) xsbt.boot.Launch $$ anonfun $ runs $ 1.Apply (Launch.scala: 109) to: xsbt.boot xsbt.boot.Launch $ .withContextLoader (129 to Launch.scala) Xsbt.boot.Launch $$ anonfun $ apply $ 1.Apply (Launch.scala: 36): $ .run (109 Launch.scala) Launch xsbt.boot.Launch $. Launch on (Launch.scala: 117) xsbt At .boot.Launch $ .apply (Launch.scala: 19) xsbt.boot.boot $ .runImpl (Boot.scala: 44) at: xsbt.boot.boot at $ xboot.boot $ (20 Boot.scala) on main java.net.URLClassLoader org.fusesource.jansi.AnsiOutputStream on java.net.URLClassLoader $ 1.run (URLClassLoader.java:372) at $ 1.run: java.lang.ClassNotFoundException: .Boot.main (Boot.scala) because of the java.lang.ClassLoader.loadClass (java.security.AccessController.doPrivileged (Native method java.net.URLClassLoader.findClass on ClassLoader.java:424)) (URLClassLoader.java:360) (URLClassLoader.java : 361) but java.lang.ClassLoader.loadClass (ClassLoader.java357) ... 38 more errors during SBT execution: jav A.lang.NoClassDefFoundError: org / fusesource / jansi / AnsiOutputStrea You can try to delete and recreate your local repo (it is not exactly sure which one is)    

applies to you):

  ~ / .m2 / repository ~ / .ivy2 / cache Also, before switching to  activator  before the  active  command there was a ~ / .ivy / cache   

Now something like the activator should be clear . After this you can try with catalyst compilation

Edit:. As @sentenza said, ~ / .sbt was the right step to remove the problem that resolved the problem. I still leave the other options above because they can work for someone else.

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -