In my pc I'm always having a problem with running my java code in cmd . It shows "error loading main class" (though I commented out project name, set the classpath,set the PATH variable, but still no change) all the time. My teacher told me to create a new file and store my .java files there and edit it with notepad++ and create a .bat format file.
But I'm not sure about the whole process because I tried to do that it showed error again "error loading main class" (may be I missed some steps). Can anyone please help me with this? Any help would be really appreciated.