Registering the layer.xml file

In older versions of the NetBeans IDE, you had the option to create a layer.xml file during the creation of a project.

In more recent versions of NetBeans IDE, this shortcut has been removed.

A layer.xml file is almost always needed to plug your own behavior into INTViewer.

There are two steps to create a layer.xml file manually:

  • adding a layer.xml file to your project, and
  • registering that file in the manifest.mf

The easiest way to perform these two steps is to use the wizard. Right-click in your project's top package and select New->Other

If the XML Layer menu item is visible, select that menu item. Otherwise, select Module Development ->XML Layer

Confirm the location of the XML file by clicking Finish

An empty layer.xml file is added automatically.

And this file is registered in the manifest.mf file: