How can I get the “Eclipse >Generate>Jaxb classes” option back?

前端 未结 10 1170
悲&欢浪女
悲&欢浪女 2020-12-15 15:43

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

10条回答
  •  醉酒成梦
    2020-12-15 16:30

    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

提交回复
热议问题