After succesively deleting everything Java SDK related from Windows (including the enviroment variables), reinstalling and restarting Windows it finally worked (following the advice given on a website that deals with an error that is related to this problem):
https://bugs.openjdk.java.net/browse/JDK-8231015
"CUSTOMER SUBMITTED WORKAROUND :
Uninstall other JDKs in the system. It seems removing the jdk 8 from the PATH env variable solves this."