Okay, so this is the first time I'm actually trying to make a java project where it actually follows guidelines, including some form of folder structure. However, I'm having trouble in actually compiling it, I have my src folder, which obviously contains the source code, but when I try to compile it, I run into a coupe of errors.
Within my src folder, it contains:
- main
- controller
- ui
Now just to keep it simple, let's say that in each of the 3 folders I've mentioned, they each contain 1 java class, in main I'm just trying to import things from the ui folder, so it looks something like this:
import src.ui.*;
Then in my ui folder, I have a class, let's call it UI.java and I have the package statement like this:
package ui; // Not to mention, I tried package src.ui and src.ui.UI
Then the same idea for the java file within the controller folder, any idea as to why this isn't working? Am I missing something really obvious? Like I said this is the first time I've tried to include a folder structure with a Java project, but from glancing at online material, I can't seem to get it to compile. When I try to compile the main folder, it just returns how package src.ui does not exist, then of course it points out how it can't locate anything to do with the files from the ui folder, as expected considering it's saying that the src.ui package does not exist.
No joke, this is my first time using the package statement in java, and this is the first time I've tried to import my own classes. I've use import for the likes of ArrayLists, and I know that it's case sensitive and what not. I feel like an idiot, and it's bugging me, I'm confident I'm just doing a stupid mistake. Can someone please just tell me where I'm going wrong?
