did u write String args[] as argument in main method....
public static void main(string args[]) that error of nomethod will come when didnt pass Stringarray argument... On Fri, 12 Nov 2004 03:07:43 -0800 (PST), java_help <[EMAIL PROTECTED]> wrote: > > > hi > > can u please tell me why is this error occuring and i am getting this in > most of my programs i write > > thanks mann.but after compling the code i am getting no such method > declartionerror > > i have correctly said all my paths in enviroment varaiables > > > > C:\jdk1.4\bin>javac Candidate1.java > > C:\jdk1.4\bin>java Candidate1 > Exception in thread "main" java.lang.NoSuchMethodError: main > > C:\jdk1.4\bin> > i have changed the name of file to Candidate1.and > > > > > --------------------------------- > Do you Yahoo!? > Check out the new Yahoo! Front Page. www.yahoo.com > > [Non-text portions of this message have been removed] > > > > > > > > > If you have any comments or questions, submit it on the message board. > NO spam/ads/job posting or you will be BANNED from this group. Exception > can be made it happen by notify me ahead of time. > all new members' message will be verified by me (spam..) before it get > posted. > > > > Yahoo! Groups Sponsor > > ADVERTISEMENT > > > ________________________________ > Yahoo! Groups Links > > To visit your group on the web, go to: > http://groups.yahoo.com/group/java_official/ > > To unsubscribe from this group, send an email to: > [EMAIL PROTECTED] > > Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- KISHORE 9849350551 ------------------------ Yahoo! Groups Sponsor --------------------~--> Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar. Now with Pop-Up Blocker. Get it for free! http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/5cFolB/TM --------------------------------------------------------------------~-> If you have any comments or questions, submit it on the message board. NO spam/ads/job posting or you will be BANNED from this group. Exception can be made it happen by notify me ahead of time. all new members' message will be verified by me (spam..) before it get posted. Yahoo! Groups Links <*> To reply to this message, go to: http://groups.yahoo.com/group/java_official/post?act=reply&messageNum=17405 Please do not reply to this message via email. More information here: http://help.yahoo.com/help/us/groups/messages/messages-23.html <*> To visit your group on the web, go to: http://groups.yahoo.com/group/java_official/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
