1. What software do I need to use the JAXB wizard on NetBeans IDE?
  • A NetBeans IDE 6.0 "All" installation (the biggest one, includes SOA cluster), OR a NetBeans IDE 6.1 installation with Java support.
  • Java Standard Development Kit (JDK) version 5.0 or later.
  • If you want to run the wizard from an EJB or Web Application project, you need the GlassFish application server, included with NetBeans IDE "All."
  1. Is JDK 1.5 supported?
 Yes. Also see FAQs 1 and 5
  1. Is JDK 1.6 supported?
 Yes. Also see FAQs 1 and 5
  1. How is the JAXB classloader issue handled for JDK 1.6?
 In the Java SE project, the wizard adds the JVM runtime property "java.endorsed.dirs" with values pointing to JAXB API and 
 implementation jar directory shipped with Netbeans IDE.
Ex: -Djava.endorsed.dirs=${jaxbwiz.endorsed.dirs}
  1. Why I am getting "java.lang.ClassFormatError: Illegal class modifiers in class"?
 If your IDE Java platform is JDK 1.6, but project Java platform is JDK 1.5, IDE uses JDK 1.6 to compile 
 sources to be executed in 1.5. 
See JDK issue for more details.
  1. What are the options to fix "java.lang.ClassFormatError: Illegal class modifiers in class" exception?
 Below are couple of options you can try.
    1. Generate classes with XJC "npa" option.
      Select "npa" (Suppress the generation of package level annotations) check box for the all the bindings created.
      Clean and Build the project again
    2. Use JDK 1.5 for compiling the classes.
      Change the IDE Java platform to use JDK 1.5.
      Click here for temporarily change or [here for to change permanently.
Clean and Build the project again.
  1. Why I am getting "package annotations should be in file package-info.java" compilation errors?
 Issue may be related to javac issue.
Try generating Java classes using XJC option "npa".
  1. Why I am unable to compile schema of types Relax NG, Relax NG compact and DTD's?
 JAXB RI supports only XML schema. Other schema types are "experimental, unsupported".
JAXB RI XJC doc at site https://jaxb.dev.java.net/
  1. Why are the bound java class files not regenerated after changing the schema files?
 This is due to current limitations in the JAXB Wizard's design. For a workaround see
JAXB and XML Schema in Netbeans 6.0 - Customizing
Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo