sbt supress忽略选项MaxPermSize = 256m

时间:2018-04-20 23:58:03

标签: sbt

PS D:\Users\erick\repos\leaderboard> sbt about

The Java Development Kit (JDK) installation you have is not up to date.
sbt requires at least version 6+, you have
version 0

Please go to http://www.oracle.com/technetwork/java/javase/downloads/ and download
a valid JDK and install before running sbt.
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
[info] Loading project definition from D:\Users\erick\repos\leaderboard\project
[info] Loading settings from build.sbt ...
[info] Set current project to leaderboard (in build file:/D:/Users/erick/repos/leaderboard/)
[info] This is sbt 1.1.4
[info] The current project is ProjectRef(uri("file:/D:/Users/erick/repos/leaderboard/"), "leaderboard") 0.0.0
[info] The current project is built against Scala 2.12.5
[info] Available Plugins: sbt.plugins.IvyPlugin, sbt.plugins.JvmPlugin, sbt.plugins.CorePlugin, sbt.plugins.JUnitXmlReportPlugin, sbt.plugins.Giter8TemplatePlugin
[info] sbt, sbt plugins, and build definitions are using Scala 2.12.4

寻找近一个小时的某种方式来压制

Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
在SBT中,但似乎不可能。有没有办法做到这一点?

1 个答案:

答案 0 :(得分:1)

像往常一样,我似乎在发布问题后不久就找到了解决方案:

  1. 转到SBT安装目录
  2. 编辑conf / sbtconfig.txt
  3. 删除-XX:MaxPermSize=256m
  4. 可悲的是,Google提供了许多错误或过时的点击,因此需要一段时间才能找到有效的解决方案。