We will create a library folder upon project creation. For this recipe, we will create a Java EE project.
A library consists of a set of files that are packaged inside a compressed file. Many files can exist inside a library but usually, in Java, libraries contain only class, JARs, and configuration files. Libraries in Java can have different extensions.
Libraries in Java can have different extensions:
Both WAR and EAR are built on top of JAR. These files will be explored in future recipes so for now we will only work with normal JAR files.
Please refer to the Getting ready section of the previous recipe for necessary tools and configurations.
Once that is complete, it is possible to continue to the next section.
CreatingLibraries
and, proceed by clicking Next and then Finish.Since we are creating libraries, a new project is going to be needed for this purpose. Projects can be packaged as libraries and reused in other projects to extend their functionality. Let's not worry about changing any of the default values that are set by the IDE for Project Name and web servers, since it is not a part of the scope of this recipe.
When selecting Use Dedicated Folder for Storing Libraries, it should be noted that this is where the libraries required for compilation will be stored.
NetBeans will perform the heavy lifting of copying all the necessary libraries to the specified folder. After following these steps, a new project will be created with the shared libraries folder at the chosen location.
3.146.152.71