Error: Could not find or load main class - Whenever i make a new java file : im currently working on a group project, we are using Eclipse to make a java program and using e-git (eclipse extension) to work together. For some reason today, whenever im trying to make an new java file in the package it will give me the error Error: Could not find or load main class projectPackage.filename, i have no idea what is causing the error as it was fine yesterday.