Fix parsing of Java 8 early access version string

Unlike any other Java version string, the Java 8 early access version
string (1.8.0-ea) contains a hyphen instead of an underscore. When
parsing the version string this leads to an exception which prevents
opening a project's property dialog when Eclipse runs on the Java 8
early access VM.