Scala SBT returns a non-zero exit code returned from the runner: 1

I am using the latest SBT tool for my scala code

I'm trying to do compile test run mileage

when i do this i get the 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 

In my sbt batch file there is

 @echo off java -Xmx1024M -jar sbt-launch.jar 

Anyone suggest a solution?

+4
source share
1 answer

Reduce -Xmx1024M to for example. -Xmx800M You are probably running on a 32-bit OS and your JVM cannot allocate sufficient sequential memory.

+1
source

Source: https://habr.com/ru/post/1391207/


All Articles