I recently had to migrate to a new machine and re-installed Eclipse. At the moment, I need to generate JAXB classes from an xsd. I cannot quite remember what I installed, b
I had the same issue while attempting to generate java classes from xsd file.
My installed Eclipse is: Eclipse Java EE IDE for Web Developers Version: Oxygen.3a Release (4.7.3a)
Build id: 20180405-1200
I solved it changing the workspace default JRE from JRE to JDK in Project Properties / Java Build Path / Libraries
This link describes how the problem arises: https://www.youtube.com/watch?v=zgblFjA-5Ks
This link explains how to change the default JRE. https://www.zkoss.org/wiki/Setting_Default_JRE_In_Eclipse
Hope this helps