,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Printable View
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Your filename must match your class if the class is declared as public.
Looks to me like your file is sanumber.java, but your class is Main. Change either the class or filename to match.
The main file in netbeans are named ''Main''.
I don't use netbeans myself, but by main file do you mean the project? You would need to ensure the class file is named appropriately.
I am watching this thread...no need for MSN as I don't like giving mine out.
Give me 5 minutes to download netbeans and I will see what I can do.
class sanumber not found, what is the difficulty again?
read your errors ppl!
His class is declared properly as far as I can tell with my conversation with him thus far. It seems he is building it into a jar and I assume that is causing the issue.
I tried to talk him through building it via the command line but his English isn't that good, so I am attempting to explain how to do it via Eclipse now.
May be a long shot but i think the java compiler / interpreter looks for the word Main, so change your "public class Main" to something else and try again. I've only done a little java, and don't get much chance to try any java regulary. But anyway, cant hurt to try :D