This is my first post here on the stack, I'm having trouble running this class on NetBeans. I am using version 1.8.0_40 of Java, I already tried to search for some solution, but I did not find it.
public class Dialog1 {
/**
* @param args the command line arguments
*/
public static void main(String args[]) {
// TODO code application logic here
JOptionPane.showMessageDialog(null, "Bem Vindo ao Java");
}
}
When compiling this class it up to as success, but gives an error message
run: Error: Could not locate or load main class dialog1.Dialog1 Java Result: 1 CONSTRUCTED WITH SUCCESS (total time: 1 second)
Does anyone know what might be happening?