NoSuchMethodError: Matcher.quoteReplacement during sbt execution on Ubuntu -
i installed sbt
typesafe repository suggested here:
- wget http://apt.typesafe.com/repo-deb-build-0002.deb
- sudo dpkg -i repo-deb-build-0002.deb
- sudo apt-get update
- sudo apt-get install sbt
when run sbt
i'm facing following error:
~/fun/sbt$ sbt starting sbt: invoke -help other options java.lang.nosuchmethoderror: method java.util.regex.matcher.quotereplacement signature (ljava.lang.string;)ljava.lang.string; not found. @ xsbt.boot.configurationparser$.substitutevariables(configurationparser.scala:22) @ xsbt.boot.configurationparser.id(configurationparser.scala:106) @ xsbt.boot.configurationparser$$anonfun$3.apply(configurationparser.scala:66) @ xsbt.boot.configurationparser$$anonfun$processsection$1.apply(configurationparser.scala:101) @ xsbt.boot.configurationparser.process(configurationparser.scala:102) @ xsbt.boot.configurationparser.processsection(configurationparser.scala:101) @ xsbt.boot.configurationparser.xsbt$boot$configurationparser$$apply(configurationparser.scala:60) @ xsbt.boot.configurationparser$$anonfun$apply$3.apply(configurationparser.scala:52) @ xsbt.boot.using$.withresource(using.scala:11) @ xsbt.boot.using$.apply(using.scala:10) @ xsbt.boot.configuration$$anonfun$parse$1.apply(configuration.scala:15) @ xsbt.boot.using$.withresource(using.scala:11) @ xsbt.boot.using$.apply(using.scala:10) @ xsbt.boot.configuration$.parse$fcb646c(configuration.scala:15) @ xsbt.boot.launch$.apply(launch.scala:14) @ xsbt.boot.boot$.runimpl(boot.scala:25) @ xsbt.boot.boot$.main(boot.scala:15) @ xsbt.boot.boot.main(boot.scala) error during sbt execution: java.lang.nosuchmethoderror: method java.util.regex.matcher.quotereplacement signature (ljava.lang.string;)ljava.lang.string; not found.
the reason can think of sbt fail way old java version. sbt requires java 6 or later. run java -version
know version.
Comments
Post a Comment