Friday 19 August 2016

Welcome guys this is my first post I am rohan I have gatheredy expertise in Java

Main class not found 

you may have got this error when you are running your program You get the error 
Main class not found this is mainly due to you are doing let the class be test.Java
Then :-
Javac test.java
Java test
you may be adding .Java in the end line 2 
which is wrong because after compiling the test.Java file is converted into test.class therefore when you attempt to run your Java file do not use .Java extension instead use .class extension else you will see the
Main class not found error .
Pls comment and share if you found this useful and comment eny error so I can share the solution with all persons


No comments:

Post a Comment