I am trying to uninstall jdk 10.1, and I am getting the above error message saying "internal error-2318". I tried installing a lower version (java8), and tried reinstalling a newly downloaded setup, but nothing worked.
There was some failed windows updates. once i got my windows10 fully updated it worked correctly.