Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><strong>Your <code>.java</code> files are in the <code>resources</code> folder. They should be at a <code>/java/</code> one.</strong></p> <p>The workaround is shown below, but first, understand what's going on:</p> <p>In the Maven default folder structure, Java source files (<code>.java</code>) should be in the <code>/src/*/java</code> folders, such as <code>/src/main/java</code> and <code>/src/test/java</code>.</p> <p>The <code>/src/*/resources</code> folders are reserved for resources to be used by the program, like configuration/properties files, images and so on:</p> <pre><code>src |--main | |--java | | |--com | | | |--mypackage | | | |--MyClassA.java | | | |--submypackage | | | |--SomeOtherClass.java | | |--net | | |--netpackage | | |--MyNetClassA.java | |--resources | |--myAppConfig.xml |--test |--java | |--com | |--anotherpackage | |--AnotherClassTest.java |--resources </code></pre> <h2>How to fix it:</h2> <p>Create a <code>/java/</code> source folder and place your <code>.java</code> files there:</p> <ul> <li>Right-click on <strong><em>Java Resources</em></strong></li> <li>Select <strong><em>New</em></strong></li> <li>Select <strong><em>Source Folder</em></strong></li> <li>Select your project and give the folder the name <code>src/main/java</code>:</li> </ul> <p><img src="https://i.stack.imgur.com/SGokQ.png" alt="creating source folder"></p> <p>The <code>src/main/java</code> should be created. <strong>Move the packages (the <code>com.todolist.*</code> items) with the <code>.java</code> files there.</strong></p> <p>If you can, just to make sure Maven/Eclipse catches up to the new structure: right-click your project and click <code>Maven</code> -> <code>Update Project...</code>:</p> <p><img src="https://i.stack.imgur.com/7BQaU.png" alt="maven update project"></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload