Reputation: 3224
i am using latest SBT tool for my scala code
i am trying to do compile test run
when i do this i am getting following error
[debug] Initially invalidated: Set()
[error] Could not create the Java virtual machine.
java.lang.RuntimeException: Nonzero exit code returned from runner: 1
at scala.sys.package$.error(package.scala:27)
[error] {file:/D:/TestProject/ScalaFX/scalafx/}default-c3c131/compile:run: Nonzero exit code returned from runner: 1
my sbt batch file has
@echo off
java -Xmx1024M -jar sbt-launch.jar
anyone suggest a solution ?
Upvotes: 4
Views: 4235
Reputation: 476
Reduce -Xmx1024M to e.g. -Xmx800M You are probably running on a 32 bit OS and your JVM can not allocate enough consecutive memory.
Upvotes: 1