Thank you first for your reply.
I got the code when compiling, but I found out the solution on my own.
To everyone whos got this problem, too:
This is a conflict between the JVM that is running on your computer and the JDK you are using. So you have to have the same version of JRE and JDK running on your PC. I could fix it with uninstalling all versions of JAVA on my PC and reinstalling JDK and JRE of the same version.