Does JAXB work under Java 5?

前端 未结 5 654
眼角桃花
眼角桃花 2021-01-12 00:52

Building with maven I get \"package javax.xml.bind.annotation does not exist\"

What do I need to make JAXB work with Java 5?

5条回答
  •  长情又很酷
    2021-01-12 01:29

    You can download the reference implementation (RI) from http://jaxb.dev.java.net/.

    I can't advise you on how to make it work with maven though - more trouble than it's worth, if you ask me.

    Java6 included a slightly modified version of the RI, but the RI itself works just fine with Java5.

提交回复
热议问题