![]() Error : Could not find or load main class "Could not find or load main class : XXX" where the class name is XXX occurs if the CLASSPATH environment variable where java looks for all class files, does not found the class. Read Also: Difference between PATH and CLASSPATH If you are not familiar with CLASSPATH then please check this out what is CLASSPATH and how it differs from PATH. ![]() To better understand the error you should be familiar with CLASSPATH. As the name suggest,this error occurs when java is not able to find the class you are trying to execute. Today we will look into another common problem for java beginners,i.e how to fix "error: could not find or load main class" error in java. ![]() ![]() The only way toįamiliarize yourself about the most common errors by using active javaĭevelopment. You can not find these kind of errors in java books. I have already shared the common problem java beginners face i.e illegal start of expression error. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |