I started java a few weeks ago and was doing a lot of beginner questions which I saved in many nested folders. It all worked till yesterday when suddenly Java wasn't able to find the classes I created. To see what It looks like I have attached 2 img where I created two files one in the folder and another in the sub folder. The one in folder works fine but the class in the subfolder one is found by java. I tried Adding it to the java source path for the files but somehow I can't because the parent folder is already added to the source path, but I also can't remove it. I did make it work by unadding the main file and adding the subfolders and then adding the main file again but it becomes highly inconvenient when creating more folders or nested folders. I have attached all the images I thought would be required. Also since it was working fine a few days back I think I might have messed up something I shouldn't had. Would be great to have an answer........ Thank you
#Beginner Help
19 messages · Page 1 of 1 (latest)
⌛ This post has been reserved for your question.
Hey @storm patio! Please use
/closeor theClose Postbutton above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
i'm not sure what IDE that it but it sounds like an IDE issue
VS Code
u should probably use intelliJ or eclipse
yeah, vscode is not an IDE
and the error is clear, for some reason its trying to add seperate paths as the class path
(the class path is where javac looks for the .java files it needs to compile into a complete project)
also:
If you are looking for a Java course, consider https://java-programming.mooc.fi/ which is a free course on Java Programming from the University of Helsinki.
When doing the course, it is recommended to use Eclipse or IntelliJ instead of NetBeans.
if ur trying to learn java, this is probably better than whatever ur trying to use as a resource
nope, i've nvr touched vscode, not planning on starting now
also, u didnt provide enough info
the problem is probably somewhere in project settings
u should b able to import it into intelliJ, then i can look
(assuming its still not working in a proper IDE)
...
mooc takes u all the way from "hello world" to a fully functioning asteroids game
after thet, intelliJ has "jetbrains academy" which will let u pick a project out of dozens of possibilities and help u write it till the end
hmmm ok then. Thank you. I will look into what you said.
If you are finished with your post, please close it.
If you are not, please ignore this message.
Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.