7.1.6. Creating a Java Module Manually

Select "File""New""Module""Java Module" . Alternatively, the context menu in the Navigation and Workspace views can be used.

Sonargraph relies on the Java byte code for its static code analysis. For the ability to show dependencies in the source code, the source directories must be provided as well. Source Root Directories and Class Root Directories can be added individually using the corresponding context menu entries.

Alternatively, a dialog is available via the context menu "Manage Java Source/Class Root Directories/Archives..." that allows the automatic detection of Source and Class Root Directories. The detected directories can be assigned to Java Modules via drag and drop.

Java Source/Class Root Directory Configuration
Figure 7.3. Manage Root Directory Path