#Beginner Help

19 messages · Page 1 of 1 (latest)

storm patio
#

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

storm quiverBOT
#

This post has been reserved for your question.

Hey @storm patio! Please use /close or the Close Post button 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.

inner sedge
#

i'm not sure what IDE that it but it sounds like an IDE issue

storm patio
#

VS Code

inner sedge
#

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:

storm quiverBOT
#

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.

inner sedge
#

if ur trying to learn java, this is probably better than whatever ur trying to use as a resource

storm patio
#

ok I will try that

#

But do you have any idea what I should do to rectify my issue?

inner sedge
#

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

storm patio
#

hmmm ok then. Thank you. I will look into what you said.

storm quiverBOT