Greetings folks. Here's one of those questions that seems to have been asked a million different times in a million different ways by a million different people, but none of those answers seems to be relevant to me.
Ok, so I am just starting out with Java, using the Oracle Java tutorials. I used Netbeans IDE to create the simple HelloWorldApp program, compiled it to a .class file, and then it works fine in Netbeans using the Run command there, but I wanted to see if it would work from the command line (because not everyone's going to have Netbeans but they still might want to run my program). Surprise surprise, it didn't work.
So now I will provide all the pertinent data. First, the program code:
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package helloworldapp; /** * * @author //my name deleted */ public class HelloWorldApp { /** * @param args the command line arguments */ public static void main(String[] args) { System.out.println("Hello World!"); } }
Screenshot of error:
Java-error.jpg
There you go lol. Thanks in advance!
-summit45