Results 1 to 5 of 5
- 10-13-2012, 05:11 PM #1
Senior Member
- Join Date
- Jul 2012
- Posts
- 166
- Rep Power
- 1
- 10-13-2012, 06:00 PM #2
Member
- Join Date
- Sep 2012
- Posts
- 70
- Rep Power
- 0
Re: Could not find or load main class
you must have a class that looks like the following
this is always the method that is run after you compile your program. There are a few exceptions but from what i know. One way or another this is satisfied somewhere.Java Code:public static void main(String[] args){ }
---edit---
after I compile with no main method this isn't the error I get. So sorry if this doesn't help you.Last edited by killutch; 10-13-2012 at 06:05 PM.
- 10-13-2012, 06:04 PM #3
Member
- Join Date
- Mar 2011
- Posts
- 93
- Rep Power
- 0
Re: Could not find or load main class
Hello.
A couple of things:
1) did you mis-type or mis-spell your class name? I always first check my spelling and look for typos
2) did you save the class is the wrong location? If you are using command prompt, be sure to navigate to the folder that holds your class.
If you give us the full error message you are getting, and more details when you get the error message, people here can better pinpoint the problem(s).
- 10-14-2012, 09:50 PM #4
Senior Member
- Join Date
- Jul 2012
- Posts
- 166
- Rep Power
- 1
- 10-15-2012, 04:47 AM #5
Similar Threads
-
Error:Could Not Find or Load Main Class
By vickyv200 in forum New To JavaReplies: 3Last Post: 08-29-2012, 01:10 AM -
Error: could not find or load main class
By sloppygecko in forum New To JavaReplies: 3Last Post: 08-08-2012, 03:11 PM -
Error: Could not find or load main class
By Tybald in forum EclipseReplies: 5Last Post: 05-28-2012, 11:22 AM -
Please help! Cannot find or load main class error
By BenH in forum New To JavaReplies: 3Last Post: 12-09-2011, 03:51 AM -
Error: Could not find or load main class
By ITSlave in forum New To JavaReplies: 4Last Post: 09-15-2011, 09:47 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks