-3
I’m trying to compile and run a "hello world" in Java from the command line.
My code is:
public class OlaMundo{
public static void main(String[] args){
System.out.println("Oi , funcionou");
}
}
I’m trying to get around the command line like this
$> java OlaMundo.java
This error is being shown
Error: Unable to locate or load Olamundo main class.java
Although you can understand the question, always try to write about the problem so the question is well evaluated. Something like: "When I try to run the Olamundo program with the command below, the following error occurs:".
– Giuliana Bezerra
Duplicate of Unable to find or load the main file class.java
– Jéf Bueno