I have written a simple Java program using Eclipse and Java 23. On compilation it gives error "Could not find or load main class". Also, on loading the project I see error such as "The project was not built due to release 23 is not found in the system". I can make out it is something to do with environment variables or classpath. But what exactly needs to be done to resolve both these errors ?