2013-12-22 18 views
11

sbtをしばらく使用した後、何かが失敗し、私のUbuntuマシンでsbtを実行できません。私が何をしてもこの例外が発生します。でもsbt helpを実行すると、次のエラーが発生します。

java.lang.NoClassDefFoundError: sbt/ConsoleOut$ 
    at sbt.StandardMain$.<init>(Main.scala:52) 
    at sbt.StandardMain$.<clinit>(Main.scala) 
    at sbt.xMain.run(Main.scala:26) 
    at xsbt.boot.Launch$$anonfun$run$1.apply(Launch.scala:57) 
    at xsbt.boot.Launch$.withContextLoader(Launch.scala:77) 
    at xsbt.boot.Launch$.run(Launch.scala:57) 
    at xsbt.boot.Launch$$anonfun$explicit$1.apply(Launch.scala:45) 
    at xsbt.boot.Launch$.launch(Launch.scala:65) 
    at xsbt.boot.Launch$.apply(Launch.scala:16) 
    at xsbt.boot.Boot$.runImpl(Boot.scala:32) 
    at xsbt.boot.Boot$.main(Boot.scala:21) 
    at xsbt.boot.Boot.main(Boot.scala) 
Caused by: java.lang.ClassNotFoundException: sbt.ConsoleOut$ 
    at java.net.URLClassLoader$1.run(URLClassLoader.java:366) 
    at java.net.URLClassLoader$1.run(URLClassLoader.java:355) 
    at java.security.AccessController.doPrivileged(Native Method) 
    at java.net.URLClassLoader.findClass(URLClassLoader.java:354) 
    at java.lang.ClassLoader.loadClass(ClassLoader.java:425) 
    at java.lang.ClassLoader.loadClass(ClassLoader.java:358) 
    ... 12 more 
Error during sbt execution: java.lang.NoClassDefFoundError: sbt/ConsoleOut$ 

私はJDKやコースのSBTを再インストールし、それは助けにはなりませんでした。私が覚えている唯一のことは、新しいIntelliJ IDEA 13をインストールすることでした。これは関係がありますか?

答えて

21

the only thing I remember doing was installing the new intellij (v13). Is this related?

関連性があります。

試してみてください。SBTでは

rm -rf ~/.ivy/cache 
mv ~/.sbt ~/.sbt.old 
+0

TNX。完璧に働いた。魔法の弾丸は ですrm -rf〜/ .sbt – YaDa

+2

あなたはそのディレクトリにいくつかの設定をしている可能性があります。そのため、私は 'rm'を書きませんでした! –

+0

これはちょうど私の人生を救った。 – Desingh

2

:次のコンパイルにツタの成果物の再解像度で

clean

結果、ツタのキャッシュをクリアする必要はありません。

アイビー自体が問題ならば、上記の解決策は良い代替手段です。

3

ほとんどの場合、この問題はIntelliJ IDEから発生します。実行中のすべてのプロセスを終了してもう一度起動します。 Windowsで

0

、cygwinのまたは任意の端末エミュレータとし、コマンドの下にログインします。

  1. rm -rf ~/.sbt
  2. rm -rf ~/.ivy2
  3. rm -rf ~/.ivy
関連する問題