I try in the terminal
java '/home/asadefa/Desktop/untitled.class'
and I get a ClassNotFoundException. This is the real path to the class file, compiled from
public class untitled {
public static void main(String[] args) {
System.out.println("HELLO WORLD!");
}
}
Can someone please help me? I am using Ubuntu 18.04, and javac
worked, but executing it is not working.
My question is different because none of the other answers in the other question are useful to me.