Reputation: 63
I am trying to learn Scala so I installed openjdk-8-jdk on my Ubuntu machine, and proceeded to install sbt.
sudo apt-get install openjdk-8-jdk
echo "deb https://dl.bintray.com/sbt/debian /" | sudo tee -a /etc/apt/sources.list.d/sbt.list
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2EE0EA64E40A89B84B2DF73499E82A75642AC823
sudo apt-get update
sudo apt-get install sbt
Unfortunately, after the sbt installation, when I typed 'sbt about' to check it, it retrieved the following error:
~$ sbt about
OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000d5550000, 715849728, 0) failed; error='Cannot allocate memory' (errno=12)
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 715849728 bytes for committing reserved memory.
# An error report file with more information is saved as:
# /home/antonio/hs_err_pid14103.log
Could anybody tell me what is the problem? I am not an experienced programmer and I have not found this question anywhere, perhaps because it is too basic.
Thanks!
Upvotes: 1
Views: 499
Reputation: 63
Finally, it was a problem with insufficient RAM memory. Since I am using a Virtual Machine, I just added some RAM memory and it worked perfectly.
Thank you for your feedback!
Upvotes: 2