Wait I found something when I right click on the file magamar.java and select run it runs successfully, I was using the Run option on the main menu bar and when I triend using that run option it still had an error is there a difference between those two type of run commands?
New to Java first project.
Well.. if you are using NetBeans , the only reasonable way to it happens is: You was trying to run the project before you 'build/compile' it ( maybe the autobuild option is not enable or something like that ).
I am not a NetBeans expert ( I use Eclipse IDE ) so I dont know all the options for netbeans..
KrinosX
I am not a Java programmer, I used Perl. I have however, noticed you have not put a semicolon after your print statement.
Also reading through the above posts it sounds like your file and class name must be the same. Magama and magama are not the same.
@shaaadjd
Well, for what I understood you are a begginner at programming world, because that kind of question sounds like it.
You surely missed something about what you read and tried to really do.
I found a good site that teaches Java with Eclipse IDE: http://www.javaprogressivo.net/p/curso-completo-de-java-para-iniciantes.html
You should check this out, you will find it very useful while learning.