Error message "Public class ClassName must be defined in a file called ClassName.java" indicates that the file name does not exactly match the name of the public class in the file or that you typed the class name incorrectly when compiling the class.
To avoid this error go to folder option-->Under view tab uncheck "Hide extension for known file type" option. Now rename ur file as Filename.java
No comments
Related Articles
- About JSharp
- JAVASCRIPT
- JAVA tutorial and sample codes.....Introduction(part1)
- Open and Close Windows using javascript
- Closing the browser window using javascript
- Fujaba Tool Suite For UML Modelling
- JavaServer Faces vs Struts Framework
- JavaServer Faces Unified Expression Language (EL)
- Java Puzzle - Problem of Two Developers Part 2
- Java Developer Kit(JDK)