【问题标题】:NoSuchMethodError: Matcher.quoteReplacement during sbt execution on UbuntuNoSuchMethodError:在 Ubuntu 上执行 sbt 期间的 Matcher.quoteReplacement
【发布时间】:2013-05-08 15:03:17
【问题描述】:

我从 Typesafe 存储库安装了sbt,正如建议的here

当我运行sbt 时,我遇到了以下错误:

~/fun/sbt$ sbt
Starting sbt: invoke with -help for other options
java.lang.NoSuchMethodError: method java.util.regex.Matcher.quoteReplacement with signature (Ljava.lang.String;)Ljava.lang.String; was not found.
   at xsbt.boot.ConfigurationParser$.substituteVariables(ConfigurationParser.scala:22)
   at xsbt.boot.ConfigurationParser.id(ConfigurationParser.scala:106)
   at xsbt.boot.ConfigurationParser$$anonfun$3.apply(ConfigurationParser.scala:66)
   at xsbt.boot.ConfigurationParser$$anonfun$processSection$1.apply(ConfigurationParser.scala:101)
   at xsbt.boot.ConfigurationParser.process(ConfigurationParser.scala:102)
   at xsbt.boot.ConfigurationParser.processSection(ConfigurationParser.scala:101)
   at xsbt.boot.ConfigurationParser.xsbt$boot$ConfigurationParser$$apply(ConfigurationParser.scala:60)
   at xsbt.boot.ConfigurationParser$$anonfun$apply$3.apply(ConfigurationParser.scala:52)
   at xsbt.boot.Using$.withResource(Using.scala:11)
   at xsbt.boot.Using$.apply(Using.scala:10)
   at xsbt.boot.Configuration$$anonfun$parse$1.apply(Configuration.scala:15)
   at xsbt.boot.Using$.withResource(Using.scala:11)
   at xsbt.boot.Using$.apply(Using.scala:10)
   at xsbt.boot.Configuration$.parse$fcb646c(Configuration.scala:15)
   at xsbt.boot.Launch$.apply(Launch.scala:14)
   at xsbt.boot.Boot$.runImpl(Boot.scala:25)
   at xsbt.boot.Boot$.main(Boot.scala:15)
   at xsbt.boot.Boot.main(Boot.scala)
Error during sbt execution: java.lang.NoSuchMethodError: method java.util.regex.Matcher.quoteReplacement with signature (Ljava.lang.String;)Ljava.lang.String; was not found.

【问题讨论】:

    标签: ubuntu sbt


    【解决方案1】:

    我能想到 sbt 以这种方式失败的唯一原因是旧的 Java 版本。 SBT 需要 Java 6 或更高版本。运行java -version 以了解您的版本。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-08-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-02-22
      • 2011-05-12
      • 1970-01-01
      相关资源
      最近更新 更多