0
Already installed the JDK, JRE, put td q had to put in the path. javac is working but when I give the "java Helloworld" command the following error is displayed: "Error: Could not find or load the main class Helloworld.class".
package java;
public class HelloWorld{
public static void main(String[] args) {
System.out.print("Hello World");
}
}
That’s the program right there .
How you are executing the commands?
– user28595
first gave the javac Helloworld.java,then generated the Helloworld.class,then I give java Helloworld and displays the error
– libna rodrigues
ta running from the direct terminal/cmd or an IDE?
– user28595
by command prompt
– libna rodrigues