So I am trying to compile a .java file in my vim script but it keeps giving the error "could not find or load main class name.java" while I have put a main class in my .java file`, can someane help me with that? Thanks.
while i have made a file in my script
public class $name {
public static void main(String[] args) {
"text"
}
}
javac $naamjava $naam