Below my Test.java which is one .java file from a student project. I don't see why eclipse gives me " Selection does not contain any Java files " error when I tried to "run" it from the menu Run-->Run ? Could you explain why?
This post Java launch error selection does not contain a main type does not explain my problem. In my case "main" is well defined.
class Test {
public static void main(String[] args) {
test1();
}
static void test1() {
Font f = new Font("SansSerif", Font.PLAIN, 70);
Glyph g = new Glyph(f, 'g');
System.out.println(g);
}
}