• Post Reply Bookmark Topic Watch Topic
  • New Topic

Strange error  RSS feed

 
monis raza
Ranch Hand
Posts: 38
Eclipse IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator






this compilation error is coming please help me
 
akshay nayak
Greenhorn
Posts: 4
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The program works fine.

How exactly have you compiled your program? Have you:-

1. compiled in the command prompt using javac? or
2. compiled it via an IDE like eclipse?

According to the error you are getting, it might be possible that you are compiling a class that does not contain the main method.
 
Ashish Dutt
Ranch Hand
Posts: 172
Java MySQL Database Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Perhaps, you might want to add an import statement in your Class Dog

And then compile and run the Class SuperNotSerial that has the main method
Hope that helps.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!