Online Course Discussion Forum
unable to run hello world in java
i worked through the process here and created the hello world program. it worked fine but when i switched the file to a different name it didn't run successfully. Why did this happen?
Since we are not talking about packages in Java in this class, we shouldn't need to worry about package. Your source file HelloWorld.java can be placed directly under "src" directory, and there is no need for the "test" subdirectory. That will make the package "default package" just like the one for your hello.java file. In Eclipse, red crosses in the Package Explorer indicates the source file and directories that have errors.
That is what I can think of based on your screenshot. The code itself in the source file is fine.