Jaxb Support for Netbeans 6.5

Asked
Viewd1472

1

I have not been working on java for a long time, and now I am back; so I am sort of noob, particularly with Netbeans. I am using Netbeans 6.5 on Ubuntu. I want to use the Jaxb support to generate Jaxb binding from an XML schema, as documented at http://wiki.netbeans.org/NB6JAXBSample1 . But the document asks to click on "On Project node, New -> JAXB Binding or New -> Other -> XML -> JAXB Binding" but I do not find a "Jaxb binding" option. Do I need to install some plugin or some other thing?

Edit

I found that I can use the xjc tool on the command line, which should serve the purpose for now. However a Netbeans wizard will be much useful.

  • According to http://wiki.netbeans.org/JAXBWizard, the wizard should be available in the following project types: J2SE, EJB, WAR.

    Pascal ThiventOctober 14, 2009 01:58
  • @Steen For the first question, I am not sure. For the second, I’ve created a J2SE application project, not EJB.

    amitOctober 14, 2009 01:43
  • do you have all the in your link listed prerequisites installed? Also, you don’t state that you created a new EJB Module project.

    SteenOctober 13, 2009 19:36
  • @Kumar - You may want to look at the steps again, as step 1 is: Create an EJB project using Java EE 5 version.

    James BlackOctober 14, 2009 01:54

1 个答案

0

首先,您需要下载Java Web服务daveloper包,然后再安装它。它包含内置的jaxb库。

然后,您需要设置一些jar文件的类路径,然后运行以下命令:

c:/ jwsdp> xjc -p -d