Unable to Run the Java Program

Am getting the below issue as output in Codecademy page, Once I click on run. Kindly give suggestions to overcome

There is insufficient memory for the Java Runtime Environment to continue.

Cannot create GC thread. Out of system resources.

An error report file with more information is saved as:

/home/ccuser/workspace/java-hello-java/hs_err_pid49.log