Dear AZ, You do not state whether this is a maven or an ant project. Assuming it is a maven project (which is advisable), than your files should be in the folder in C:\Users\User\Documents\NetBeansProjects\JavaApplication1\src*\main\java* \Java1 This conforms to the default setup of a maven project, src/main/java contains all relevant files for the application src/test/java the test files for e.g. unit testing. For more complex projects you may have additional resource folders under test and main.
On Thu, Nov 18, 2021 at 5:09 AM A Z <powerus...@live.com.au> wrote: > I have a tiny little Java OpenJDK 17 Module file, module-info.java, > > *module JavaApplication * > *{* > *requires java.base;* > *}* > > and Netbeans 12.5 is giving me the following errors: > > C:\Users\User\Documents\NetBeansProjects\JavaApplication1\src\Java1\Start.java:1: > error: file should be on source path, or on patch path for module > package Java1; > C:\Users\User\Documents\NetBeansProjects\JavaApplication1\src\Java1\module-info.java:1: > error: file should be on source path, or on patch path for module > module JavaApplication > 2 errors > > *If I have a Java application, where exactly am I supposed to put the > module file itself, what do I do to get it to compile and insert correctly?* > -- Pieter Van den Hombergh. No software documentation is complete with out it's source code.