1 / 3
Mar 2012

When trying to submit my first problem (life, universe, etc.) in Java, I got a Compilation error stating: "Could not create the Java virtual machine." The file got accepted on the second try, so the problem is probably not on my side.

The code looks like this:

import java.util.Scanner;
class LifeUniverseAndEverything {
    public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);

    while (true) {
        int i = sc.nextInt();
        if (i == 42)
            break;
        System.out.println(i);
    }
}
}
  • created

    Mar '12
  • last reply

    Jul '12
  • 2

    replies

  • 322

    views

  • 3

    users

Why are you self-destructing, SPOJ?

The website is tearing itself apart.

How can errors which were not there before suddenly appear?

This error is particularly annoying, since it means I cannot submit solution in Java. Everything gives a compiler error.

3 months later

I'm having the same issue with Java. Please let us know if this has changed