My Java application works fine. But my package line is underlined in red with the message: The declared package "ppr_tv.javaSrc" does not match the expected package "".
I am not sure why this is happening. All my java files are indeed in the ppr_tv/javaSrc directory. I have my java build path set to the 'src' directory which contains the aforementioned directories. Again my project works, but this error irks me.
The package name must correspond to the directory name, otherwise it's not found by the classloader. The only way you could have the situation you describe is if everything is in the default package, which is incredibly bad practice.
My java files are in the src/ppr_tv/javaSrc directory. The issue went away after the ProjectExplorer window went from displaying a plain java file the could not be expanded, to expandable java files where I could view the classes and members.