I am starting to learn Java and decided to use sublime text. I prepared a build system that would allow me to both compile and run the program. When I created my first file, it gave an error:
Error: Could not find or load main class Helloworld
Caused by: java.lang.ClassNotFoundException: Helloworld
My code:
public class Helloworld
{
public static void main(String[] args)
{
System.out.println("Helloworld")
}
}
The name of this file is Helloworld.java. I noticed one thing that the directory in which I saved this file didn't have the main class file. I am confused. Please help.
Build system code:
{
"shell_cmd": "java $file_base_name"
}