I keep getting Error: could not find or load main Class Main. This might be something simple I am just missing because of how late it is. Any help would be appreciated.
Thanks
P.S When I create a java project, it auto populates with class Main. In the Java Swing project, I typed in this information. I am not sure if that impacts the project.
@RYANTADIPARTHI Thank you for your reply. I took what you said and tried to create the program again from scratch. The syntax all looks the same but this one runs. If you happen to see the difference between the two and can point it out to me I would apprecaite it. Thanks again.
https://repl.it/@AndrewHann/This-Is-a-Try
@AndrewHann it looks like it is working. So whats your main question for now?
Hi @RYANTADIPARTHI . No main question. I am just trying to figure out how I the same workflow on two different projects resulted in different outcomes. Each project has the exact same syntax however one works and one doesn't. I can live with it. I am just curious is all. I appreciate you replying back to me so quickly. Have a great evening. Thanks
@AndrewHann oh, ok, so it's probably because the main syntax gets full priority first as main.java, and the other if you imported it gets next, there should be a change if both needs to work. But one at a time though.
Hi @Coder100 . Thanks for the quick reply. Again, its late so maybe I am missing something here. Just looking at what I have above, I thought I had this set up with Main as my current file ( top left hand corner Main.java) and I have public class Main which contains the main method.
Shouldn't the class name match the java file name?
I took one last look tonight...showInputDialog not showInputDialogue...that is what it was. Thanks again everyone for your help on this