2014-10-09 91 views
4

我试图运行Typesafe激活器的UI。当我运行它时,它会像下载所有东西一样成功,但会抛出java.lang.IlleagalArgumentException异常。我试图多次运行它,但我不断收到此错误:Typesafe Activator在尝试运行UI时抛出java.lang.IllegalArgumentException

Checking for a newer version of Activator (current version 1.2.10)... 
    ... our current version 1.2.10 looks like the latest. 
Found previous process id: 2816 
FOUND REPO = activator-local @ file://C:/Users/Elijah/.activator/repository 
java.lang.IllegalArgumentException: URI has an authority component 
     at java.io.File.<init>(File.java:423) 
     at activator.UIMain$$anonfun$2.applyOrElse(UIMain.scala:103) 
     at activator.UIMain$$anonfun$2.applyOrElse(UIMain.scala:100) 
     at scala.PartialFunction$$anonfun$runWith$1.apply(PartialFunction.scala: 
136) 
     at scala.PartialFunction$$anonfun$runWith$1.apply(PartialFunction.scala: 
135) 
     at scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimize 
d.scala:33) 
     at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:186) 
     at scala.collection.TraversableLike$class.collect(TraversableLike.scala: 
282) 
     at scala.collection.mutable.ArrayOps$ofRef.collect(ArrayOps.scala:186) 
     at activator.UIMain.run(UIMain.scala:100) 
     at activator.UIMain.run(UIMain.scala:87) 
     at xsbt.boot.Launch$$anonfun$run$1.apply(Launch.scala:109) 
     at xsbt.boot.Launch$.withContextLoader(Launch.scala:129) 
     at xsbt.boot.Launch$.run(Launch.scala:109) 
     at xsbt.boot.Launch$$anonfun$apply$1.apply(Launch.scala:36) 
     at xsbt.boot.Launch$.launch(Launch.scala:117) 
     at xsbt.boot.Launch$.apply(Launch.scala:19) 
     at xsbt.boot.Boot$.runImpl(Boot.scala:44) 
     at xsbt.boot.Boot$.main(Boot.scala:20) 
     at xsbt.boot.Boot.main(Boot.scala) 
Error during sbt execution: java.lang.IllegalArgumentException: URI has an autho 
rity component 
Press any key to continue . . . 

我想不出什么更多的事情要做。这是一个可以修复的问题吗?我试过谷歌,但没有发现任何使用。

+0

我与Play Framework 2.3.5具有相同的功能。我从[Play Framework](https://www.playframework.com/download#older-versions)网站下载了2.3.4版本,并且没有这个问题。 – Jesper 2014-10-10 20:41:09

+0

我还必须删除目录'C:\ Users \ \ .activator' – Jesper 2014-10-10 20:42:50

回答

0

检查文件C:/Users/Elijah/.activator/repository.sbt/repository包含file://参考两个正斜杠。向文件引用添加第三个斜杠并重试。我有一个与SBT类似的问题,并解决了这个问题。当心激活者倾向于覆盖这个。

请参阅this post了解更多信息

+0

当使用Windows本地路径变量时,不要放第三个斜杠,总共放置四个斜线(file:////)。使用UNC路径时,只需两个斜杠就可以工作。 – HighTML 2016-02-02 22:57:20

相关问题