javac Fourm.java Fourm.java:8: cannot access MenuBar bad class file: RegularFileObject[./MenuBar.java] file does not contain class MenuBar Please remove or make sure it appears in the correct subdirectory of the classpath. MenuBar mb=new MenuBar(); ^ 1 error